]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Fix reusing an ndlp that is marked NLP_DROPPED during FLOGI
authorJustin Tee <justin.tee@broadcom.com>
Thu, 6 Nov 2025 22:46:36 +0000 (14:46 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Nov 2025 18:18:00 +0000 (13:18 -0500)
commit07caedc6a3887938813727beafea40f07c497705
tree407ce8c71c5253d2b17c4f174ef572f098aa1986
parent0b8b15a0b74dafe4b184dfae120d715172960ae5
scsi: lpfc: Fix reusing an ndlp that is marked NLP_DROPPED during FLOGI

It's possible for an unstable link to repeatedly bounce allowing a FLOGI
retry, but then bounce again forcing an abort of the FLOGI.  Ensure that
the initial reference count on the FLOGI ndlp is restored in this faulty
link scenario.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://patch.msgid.link/20251106224639.139176-8-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c
drivers/scsi/lpfc/lpfc_hbadisc.c