]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: lpfc: Ensure unregistration of rpis for received PLOGIs
authorJustin Tee <justin.tee@broadcom.com>
Thu, 6 Nov 2025 22:46:33 +0000 (14:46 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 8 Nov 2025 18:18:00 +0000 (13:18 -0500)
commit6f81582b7a9deb3ab10354e801b3ea5cec92b06c
tree2f6e94f057e3dc01a7e627f4960302c645c82797
parent3c228061c80df4ea63c2d5ca2c781323885bac7a
scsi: lpfc: Ensure unregistration of rpis for received PLOGIs

Unregistration of an rpi object should be done when a PLOGI is received
as PLOGI receipt implies an implicit LOGO.  Previously, the driver would
continue using the same, already registered, rpi and ACC the received
PLOGI.

Replace the ACC and early return statement with break to execute the
rest of the lpfc_rcv_plogi logic outside the switch case statement.
This ensures unregistration and reregistration of an rpi after PLOGI_ACC
completion.

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