]> git.ipfire.org Git - thirdparty/linux.git/commit
scsi: lpfc: Remove unnecessary ndlp kref get in lpfc_check_nlp_post_devloss
authorJustin Tee <justin.tee@broadcom.com>
Thu, 12 Feb 2026 21:30:01 +0000 (13:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Feb 2026 18:06:51 +0000 (13:06 -0500)
commitf6bfb8d149336661bb80e62980da9a45b920403c
tree59ac465ca06a4a49e5697a071e31eac34a1da745
parent70b468d41b822e4b510761120be3924df966a62d
scsi: lpfc: Remove unnecessary ndlp kref get in lpfc_check_nlp_post_devloss

When NLP_IN_RECOV_POST_DEV_LOSS is set, the initial node reference
remains held while recovery is in progress.  Taking a reference when
NLP_IN_RECOV_POST_DEV_LOSS is cleared results in an additional reference
being held.  This causes an extra reference when cleaning up lpfc_vport
instances.  Thus, remove the extraneous ndlp kref get in
lpfc_check_nlp_post_devloss.

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