diff options
author | James Smart <jsmart2021@gmail.com> | 2022-04-12 15:19:49 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-18 22:48:44 -0400 |
commit | 3483a44bdfb475432081a27b38ea7fb8305814af (patch) | |
tree | 0efbe65d93e9be47fe6e1925c2c2752e98e41c10 /drivers/scsi/lpfc/lpfc_els.c | |
parent | 03cbbd7c2f5ee288f648f4aeedc765a181188553 (diff) | |
download | linux-3483a44bdfb475432081a27b38ea7fb8305814af.tar.gz linux-3483a44bdfb475432081a27b38ea7fb8305814af.tar.bz2 linux-3483a44bdfb475432081a27b38ea7fb8305814af.zip |
scsi: lpfc: Clear fabric topology flag before initiating a new FLOGI
Previous topologies may no longer be in fabric mode, so clear FC_FABRIC in
fc_flag for every new FLOGI.
Link: https://lore.kernel.org/r/20220412222008.126521-8-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_els.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_els.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/lpfc/lpfc_els.c b/drivers/scsi/lpfc/lpfc_els.c index 7f2b65e4affa..59e8c6f9d30e 100644 --- a/drivers/scsi/lpfc/lpfc_els.c +++ b/drivers/scsi/lpfc/lpfc_els.c @@ -1531,6 +1531,8 @@ lpfc_initial_flogi(struct lpfc_vport *vport) lpfc_enqueue_node(vport, ndlp); } + /* Reset the Fabric flag, topology change may have happened */ + vport->fc_flag &= ~FC_FABRIC; if (lpfc_issue_els_flogi(vport, ndlp, 0)) { /* This decrement of reference count to node shall kick off * the release of the node. |