From: James Smart <James.Smart@Emulex.Com>
To: Joe Eykholt <jeykholt@cisco.com>
Cc: Christof Schmitt <christof.schmitt@de.ibm.com>,
James Bottomley <James.Bottomley@suse.de>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
"linux-s390@vger.kernel.org" <linux-s390@vger.kernel.org>,
"schwidefsky@de.ibm.com" <schwidefsky@de.ibm.com>,
"heiko.carstens@de.ibm.com" <heiko.carstens@de.ibm.com>
Subject: Re: [patch 2/5] zfcp: Handle WWPN mismatch in PLOGI payload
Date: Tue, 13 Oct 2009 14:09:12 -0400 [thread overview]
Message-ID: <4AD4C248.3040406@emulex.com> (raw)
In-Reply-To: <4AD4B01B.2010100@cisco.com>
Joe Eykholt wrote:
> Christof Schmitt wrote:
>
>> From: Christof Schmitt <christof.schmitt@de.ibm.com>
>>
>> For ports, zfcp gets the DID from the FC nameserver and tries to open
>> the port. If the open succeeds, zfcp compares the WWPN from the
>> nameserver with the WWPN in the PLOGI payload. In case of a mismatch,
>> zfcp assumes that the DID of the port just changed and we opened the
>> wrong port. This means that zfcp has to forget the DID, lookup the DID
>> again and retry.
>>
>
> Does this happen very often? Would you get an RSCN if a target's WWPN changed?
>
You should - as it is supposed to re-login with the fabric, thus the
fabric login will update the nameserver, and nameserver will generate
the RSCN. But, there's no guarantee as to how quickly you will see the
RSCN. If you were on FC-AL, this happens all the time and never w/ an
RSCN.
> Just wondering how this happens and whether libfc needs similar defenses.
> Is it due to a broken target?
>
Libfc needs a similar defense. You may not need to compare against the
"nameserver" values, but you had better compare against same N_Port_ID,
different WWPN. or vice-versa. Its common to have RSCN events delayed,
allowing discovery to occur in between events that may be outstanding
(e.g. tgt plugs in - RSCN-1 event, tgt moves to another port (user error
-kicks out and replugs) or an array failover such that WWPN moves to new
switch port/N_Port_ID - RSCN-2 event; and your ADISC/PLOGI based on
RSCN-1 arrives and is responded to sooner than the nameserver propagates
its updates and you receive RSCN-2)
-- james s
next prev parent reply other threads:[~2009-10-13 18:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 8:44 [patch 0/5] zfcp fixes for 2.6.32-rc4 Christof Schmitt
2009-10-13 8:44 ` [patch 1/5] zfcp: fix kfree handling in zfcp_init_device_setup Christof Schmitt
2009-10-13 8:44 ` [patch 2/5] zfcp: Handle WWPN mismatch in PLOGI payload Christof Schmitt
2009-10-13 16:51 ` Joe Eykholt
2009-10-13 18:09 ` James Smart [this message]
2009-10-14 8:42 ` Christof Schmitt
2009-10-14 9:00 ` [updated patch (fix comment)][patch " Christof Schmitt
2009-10-13 8:44 ` [patch 3/5] zfcp: Warn about storage devices with broken PLOGI data Christof Schmitt
2009-10-13 8:44 ` [patch 4/5] zfcp: Fix timer initialization for ct and els requests Christof Schmitt
2009-10-13 8:44 ` [patch 5/5] zfcp: Flush SCSI registration work when adding unit Christof Schmitt
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=4AD4C248.3040406@emulex.com \
--to=james.smart@emulex.com \
--cc=James.Bottomley@suse.de \
--cc=christof.schmitt@de.ibm.com \
--cc=heiko.carstens@de.ibm.com \
--cc=jeykholt@cisco.com \
--cc=linux-s390@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=schwidefsky@de.ibm.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).