Skip to content

Commit

Permalink
scsi: ibmvfc: Avoid loss of all paths during SVC node reboot
Browse files Browse the repository at this point in the history
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/[email protected]
Signed-off-by: Brian King <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
bjking1 authored and martinkpetersen committed Mar 12, 2020
1 parent 5febf6d commit ed83038
Show file tree
Hide file tree
Showing 2 changed files with 173 additions and 37 deletions.
Loading

0 comments on commit ed83038

Please sign in to comment.