Commit ed830385 authored by Brian King's avatar Brian King Committed by Martin K. Petersen

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.comSigned-off-by: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5febf6d6
This diff is collapsed.
...@@ -596,6 +596,8 @@ enum ibmvfc_target_action { ...@@ -596,6 +596,8 @@ enum ibmvfc_target_action {
IBMVFC_TGT_ACTION_NONE = 0, IBMVFC_TGT_ACTION_NONE = 0,
IBMVFC_TGT_ACTION_INIT, IBMVFC_TGT_ACTION_INIT,
IBMVFC_TGT_ACTION_INIT_WAIT, IBMVFC_TGT_ACTION_INIT_WAIT,
IBMVFC_TGT_ACTION_LOGOUT_RPORT,
IBMVFC_TGT_ACTION_LOGOUT_RPORT_WAIT,
IBMVFC_TGT_ACTION_DEL_RPORT, IBMVFC_TGT_ACTION_DEL_RPORT,
IBMVFC_TGT_ACTION_DELETED_RPORT, IBMVFC_TGT_ACTION_DELETED_RPORT,
}; };
...@@ -604,7 +606,6 @@ struct ibmvfc_target { ...@@ -604,7 +606,6 @@ struct ibmvfc_target {
struct list_head queue; struct list_head queue;
struct ibmvfc_host *vhost; struct ibmvfc_host *vhost;
u64 scsi_id; u64 scsi_id;
u64 new_scsi_id;
struct fc_rport *rport; struct fc_rport *rport;
int target_id; int target_id;
enum ibmvfc_target_action action; enum ibmvfc_target_action action;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment