]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix locking for lpfc_sli_iocbq_lookup()
authorJames Smart <jsmart2021@gmail.com>
Wed, 23 Mar 2022 20:55:45 +0000 (13:55 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 30 Mar 2022 03:22:16 +0000 (23:22 -0400)
commitd5a943bc6360cd3f7ec2a807869197e73fe37691
tree711019c57978338df8fd66d9d7684d1c710be8b0
parent59066b05cdab9580ea8f1e7b3efbb806e9af2baa
scsi: lpfc: Fix locking for lpfc_sli_iocbq_lookup()

The rules changed for lpfc_sli_iocbq_lookup() vs locking. Prior, the
routine properly took out the lock. In newly refactored code, the locks
must be held when calling the routine.

Fix lpfc_sli_process_sol_iocb() to take the locks before calling the
routine.

Fix lpfc_sli_handle_fast_ring_event() to not release the locks to call the
routine.

Link: https://lore.kernel.org/r/20220323205545.81814-3-jsmart2021@gmail.com
Fixes: 912822918d54 ("scsi: lpfc: SLI path split: Refactor fast and slow paths to native SLI4")
Co-developed-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_sli.c