scsi: lpfc: Match lock ordering of lpfc_cmd->buf_lock and hbalock for abort paths
authorJustin Tee <justin.tee@broadcom.com>
Mon, 17 Apr 2023 19:15:54 +0000 (12:15 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 8 May 2023 11:16:05 +0000 (07:16 -0400)
commit78e9e35004fd42ca6d539f3ba5c600a189241633
treeaeb4624435f3ad23c8fddf7af620a0b78718615f
parent97f975823f8196d970bd795087b514271214677a
scsi: lpfc: Match lock ordering of lpfc_cmd->buf_lock and hbalock for abort paths

The SCSI version of the abort handler routine, lpfc_abort_handler(), takes
the lpfc_cmd->buf_lock and then phba->hbalock.

Make the same change for the NVMe abort path, lpfc_nvme_fcp_abort(), to
have consistent lock ordering logic between the two abort paths.

Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Link: https://lore.kernel.org/r/20230417191558.83100-4-justintee8345@gmail.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_nvme.c