diff options
author | Justin Tee <justin.tee@broadcom.com> | 2024-03-05 23:04:53 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-17 13:02:09 +0300 |
commit | 76337eb8daee32bcc67742efab3168ed4ca299d0 (patch) | |
tree | 66ac62e7fdad41b6a3a65e140b9dc64835a9178d /drivers/scsi/lpfc/lpfc_init.c | |
parent | ff54c87f32f23b81c94910fb7d0201634d901cba (diff) | |
download | linux-76337eb8daee32bcc67742efab3168ed4ca299d0.tar.xz |
scsi: lpfc: Move NPIV's transport unregistration to after resource clean up
[ Upstream commit 4ddf01f2f1504fa08b766e8cfeec558e9f8eef6c ]
There are cases after NPIV deletion where the fabric switch still believes
the NPIV is logged into the fabric. This occurs when a vport is
unregistered before the Remove All DA_ID CT and LOGO ELS are sent to the
fabric.
Currently fc_remove_host(), which calls dev_loss_tmo for all D_IDs including
the fabric D_ID, removes the last ndlp reference and frees the ndlp rport
object. This sometimes causes the race condition where the final DA_ID and
LOGO are skipped from being sent to the fabric switch.
Fix by moving the fc_remove_host() and scsi_remove_host() calls after DA_ID
and LOGO are sent.
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240305200503.57317-3-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_init.c')
0 files changed, 0 insertions, 0 deletions