]> Gentwo Git Trees - linux/.git/commit
scsi: lpfc: Ensure PLOGI_ACC is sent prior to PRLI in Point to Point topology
authorJustin Tee <justin.tee@broadcom.com>
Mon, 15 Sep 2025 18:08:04 +0000 (11:08 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 17 Sep 2025 02:19:59 +0000 (22:19 -0400)
commit2bf81856a403c92a4ce375288f33fba82ca2ccc6
treeaeb16c2a1b5dd8697cd4dab92315d4c5af5855a3
parentf408dde2468b3957e92b25e7438f74c8e9fb9e73
scsi: lpfc: Ensure PLOGI_ACC is sent prior to PRLI in Point to Point topology

There is a timing race condition when a PRLI may be sent on the wire
before PLOGI_ACC in Point to Point topology.  Fix by deferring REG_RPI
mbox completion handling to after PLOGI_ACC's CQE completion.  Because
the discovery state machine only sends PRLI after REG_RPI mbox
completion, PRLI is now guaranteed to be sent after PLOGI_ACC.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Message-ID: <20250915180811.137530-8-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