scsi: lpfc: Release hbalock before calling lpfc_worker_wake_up()
authorJustin Tee <justin.tee@broadcom.com>
Tue, 5 Mar 2024 20:04:57 +0000 (12:04 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sun, 10 Mar 2024 22:56:43 +0000 (18:56 -0400)
commitded20192dff31c91cef2a04f7e20e60e9bb887d3
tree3808fd73d198a09d85f8b7691597338746ba982d
parentd11272be497e48a8e8f980470eb6b70e92eed0ce
scsi: lpfc: Release hbalock before calling lpfc_worker_wake_up()

lpfc_worker_wake_up() calls the lpfc_work_done() routine, which takes the
hbalock.  Thus, lpfc_worker_wake_up() should not be called while holding the
hbalock to avoid potential deadlock.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20240305200503.57317-7-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
drivers/scsi/lpfc/lpfc_sli.c