Skip to content

Commit 68ce87a

Browse files
author
Paul Ely
committed
scsi: lpfc: Ensure HBA_SETUP flag is used only for SLI4 in dev_loss_tmo_callbk
JIRA: https://issues.redhat.com/browse/RHEL-103751 commit 1cced57 Author: Justin Tee <justin.tee@broadcom.com> Date: Wed Jun 18 12:21:33 2025 -0700 scsi: lpfc: Ensure HBA_SETUP flag is used only for SLI4 in dev_loss_tmo_callbk For SLI3, the HBA_SETUP flag is never set so the lpfc_dev_loss_tmo_callbk always early returns. Add a phba->sli_rev check for SLI4 mode so that the SLI3 path can flow through the original dev_loss_tmo worker thread design to lpfc_dev_loss_tmo_handler instead of early return. Signed-off-by: Justin Tee <justin.tee@broadcom.com> Link: https://lore.kernel.org/r/20250618192138.124116-9-justintee8345@gmail.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Paul Ely <paely@redhat.com>
1 parent f13e1a4 commit 68ce87a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/scsi/lpfc/lpfc_hbadisc.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ lpfc_dev_loss_tmo_callbk(struct fc_rport *rport)
183183

184184
/* Don't schedule a worker thread event if the vport is going down. */
185185
if (test_bit(FC_UNLOADING, &vport->load_flag) ||
186-
!test_bit(HBA_SETUP, &phba->hba_flag)) {
186+
(phba->sli_rev == LPFC_SLI_REV4 &&
187+
!test_bit(HBA_SETUP, &phba->hba_flag))) {
187188

188189
spin_lock_irqsave(&ndlp->lock, iflags);
189190
ndlp->rport = NULL;

0 commit comments

Comments
 (0)