From: Andrew Vasquez <andrew.vasquez@qlogic.com>
To: James Smart <james.smart@Emulex.Com>
Cc: Mike Christie <michaelc@cs.wisc.edu>,
"brking@linux.vnet.ibm.com" <brking@linux.vnet.ibm.com>,
SCSI Mailing List <linux-scsi@vger.kernel.org>,
"Desai, Kashyap" <Kashyap.Desai@lsi.com>,
Giridhar Malavali <giridhar.malavali@qlogic.com>,
Christof Schmitt <christof.schmitt@de.ibm.com>,
"Love, Robert W" <robert.w.love@intel.com>,
Jing Huang <huangj@Brocade.COM>
Subject: Re: dev_loss_tmo behavior question
Date: Wed, 28 Jul 2010 09:57:07 -0700 [thread overview]
Message-ID: <20100728165707.GA9844@plapp.qlogic.org> (raw)
In-Reply-To: <4C5055AA.7080703@emulex.com>
On Wed, 28 Jul 2010, James Smart wrote:
> Mike Christie wrote:
> > Hi FC driver developers,
> >
> > I am trying to figure out what is the correct behavior when setting
> > dev_loss_tmo.
> >
> > With lpfc, qla2xx, and ibmfc if I set dev_loss_tmo using
> > /sys/class/fc_remote_port/rport-xx/dev_loss_tmo, and then we add devices
> > the slave_configure functions for these drivers reset the dev_loss_tmo
> > to a driver value.
> >
> > The addition of devs could be from something like a user rescan, or from
> > a scan started by a remote port addition.
>
> Looking at lpfc - this is a totally insane thing to do, and definitely a bug.
> Addition or removal of sdevs should not change a rport setting.
Completely agree...
> > With fcoe, fnic, mptfc, bfa and zfcp the dev_loss_tmo value set from
> > sysfs will not be reset by a driver value on rescans.
> >
> > Which drivers should be changed?
>
> lpfc, qla2xx, and ibmfc.
I'm curious though, each driver would still need to seed the rport's
dev_loss_tmo value (in the case of qla2xxx,
ha->port_down_retry_count), but, by doing so after rport-addition
(fc_remote_port_add()), the driver could still overwrite a previous
sysfs setting. Internally, upon rport creation, the dev_loss_tmo
value is seeding with fc_dev_loss_tmo (a module parameter -- 60
seconds). Should we extend the transport so the the 'default seeding
value' can be specified once at fc_host creation-time?
BTW: fnic looks to be doing the same 'bad' behaviour in their
slave_alloc() call too...
-- av
next prev parent reply other threads:[~2010-07-28 16:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 21:11 dev_loss_tmo behavior question Mike Christie
2010-07-28 8:45 ` Christof Schmitt
2010-07-28 16:07 ` James Smart
2010-07-28 16:57 ` Andrew Vasquez [this message]
2010-07-30 17:21 ` Mike Christie
2010-07-30 17:28 ` James Smart
2010-07-30 22:15 ` Andrew Vasquez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100728165707.GA9844@plapp.qlogic.org \
--to=andrew.vasquez@qlogic.com \
--cc=Kashyap.Desai@lsi.com \
--cc=brking@linux.vnet.ibm.com \
--cc=christof.schmitt@de.ibm.com \
--cc=giridhar.malavali@qlogic.com \
--cc=huangj@Brocade.COM \
--cc=james.smart@Emulex.Com \
--cc=linux-scsi@vger.kernel.org \
--cc=michaelc@cs.wisc.edu \
--cc=robert.w.love@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).