]> git.karo-electronics.de Git - linux-beck.git/commit
lpfc: Devices are not discovered during takeaway/giveback testing
authorJames Smart <james.smart@avagotech.com>
Fri, 22 May 2015 14:42:37 +0000 (10:42 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Sat, 13 Jun 2015 15:20:30 +0000 (08:20 -0700)
commit953ceeda97ddfed2c6e0bea3706257d57197f269
tree24a65303af34f459e9ef68e1c12862693af02ee3
parent73dc0dbed3f9f65c6f80fab429dd9771de794714
lpfc: Devices are not discovered during takeaway/giveback testing

When a remote nport changes it's DID, a new ndlp is used.
However, we left the old ndlp state unchanged and still in
a discovery state. The may stall discovery resulting in some
devices not being discovered.  Correct by swapping the state
of the 2 ndlp's when a DID swap is detected.

Signed-off-by: Dick Kennedy <dick.kennedy@avagotech.com>
Signed-off-by: James Smart <james.smart@avagotech.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/lpfc/lpfc_els.c