]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
scsi: lpfc: Decrement ndlp kref after FDISC retries exhausted
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:08:02 +0000 (11:08 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:19:59 +0000 (22:19 -0400)
commitb5bf6d681fce69cd1a57bfc0f1bdbbb348035117
treeae51347fd404c6592779456fb221aed633efd907
parenta4809b98eb004fcbf7c4d45eb5a624d1c682bb73
scsi: lpfc: Decrement ndlp kref after FDISC retries exhausted

The kref for Fabric_DID ndlps is not decremented after repeated FDISC
failures and exhausting maximum allowed retries.  This can leave the
ndlp lingering unnecessarily.  Add a test and set bit operation for the
NLP_DROPPED flag. If not previously set, then a kref is decremented. The
ndlp is freed when the remaining reference for the completing ELS is
put.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-6-justintee8345@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_els.c