scsi: lpfc: Remove unnecessary lockdep_assert_held calls
authorDick Kennedy <dick.kennedy@broadcom.com>
Fri, 1 May 2020 21:43:07 +0000 (14:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 May 2020 02:47:24 +0000 (22:47 -0400)
commit88acb4d9ff981d3ff6ea307e62a08b8739f8ebcd
tree8cf19748bc0f8423d4a2f9bd614cefc25fc4c72f
parent3048e3e805e36a61cf02f185b02b4144f46d8ff3
scsi: lpfc: Remove unnecessary lockdep_assert_held calls

In an audit of lockdep calls in the driver, there are multiple lockdep
checks in successive calling layers. E.g. a routine checks, and then calls
a lower routine that also checks, and so on. Calling sequences result in
many redundant checks.

Refine the code to remove lower-level lockdep checks.  Update comments on
the lock, correcting a few places where lock object in comment was
incorrect.

Link: https://lore.kernel.org/r/20200501214310.91713-7-jsmart2021@gmail.com
Reviewed-by: Hannes Reinecke <hare@suse.de>
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_hbadisc.c
drivers/scsi/lpfc/lpfc_sli.c