]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ibmvfc: Avoid loss of all paths during SVC node reboot
authorBrian King <brking@linux.vnet.ibm.com>
Thu, 27 Feb 2020 01:45:43 +0000 (19:45 -0600)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 12 Mar 2020 03:07:57 +0000 (23:07 -0400)
commite1872404d4a409e85ab0bc38d2d9bc80b4276e7c
tree8c20ab696c209767abfe89e763eb8fca17e050fc
parentc4ddea7e54862a83e9d90364e140fc6e2de0ba5e
scsi: ibmvfc: Avoid loss of all paths during SVC node reboot

When an SVC node goes down as part of a node reboot, its WWPNs are moved to
the remaining node. When the node is back online, its WWPNs are moved
back. The result is that the WWPN moves from one NPort_ID to another, then
back again.  The ibmvfc driver was forcing the old port to be removed, but
not sending an implicit logout. When the WWPN showed up at the new
location, the PLOGI failed as there was already a login established for the
old scsi id. The patch below fixes this by ensuring we always send an
implicit logout for any scsi id associated with an rport prior to calling
fc_remote_port_delete.

Link: https://lore.kernel.org/r/1582767943-16611-1-git-send-email-brking@linux.vnet.ibm.com
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ibmvscsi/ibmvfc.c
drivers/scsi/ibmvscsi/ibmvfc.h