]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite2843a4f3b7ee8b6e47f93453c464769dd66f54d
tree8cf19748bc0f8423d4a2f9bd614cefc25fc4c72f
parent3bb7a4d9437e608415eb373974550e293ed6fa4b
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