]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Correct __lpfc_sli_issue_iocb_s4 lockdep check
authorJames Smart <jsmart2021@gmail.com>
Mon, 4 Mar 2019 23:15:43 +0000 (15:15 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Mar 2019 00:26:45 +0000 (19:26 -0500)
commit37f0d277d0738509787c0d8523ba52edb44b565c
tree03823dc57a18c266f53b8ebbf3dba92f3620763a
parentb73b497fa8d207f619dcf13baa327794af16d727
scsi: lpfc: Correct __lpfc_sli_issue_iocb_s4 lockdep check

The outer routine lpfc_sli_issue_iocb(), which decomposes into the
SLI3 (s3) or SLI4 (s4) subroutines takes out the locks. For s3, it takes
out the hbalock. For s4, it takes out the ring_lock. The lockdep check in
the s3 and s4 subroutines both check hbalock, which is incorrect for s4.

Revise the s4 subroutine to lockdep check the ring_lock.

Reported-by: Bart Van Assche <bvanassche@acm.org>
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