]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: snic: Replace spin_is_locked() with lockdep
authorLance Roy <ldr709@gmail.com>
Wed, 3 Oct 2018 05:38:55 +0000 (22:38 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 11 Oct 2018 02:36:29 +0000 (22:36 -0400)
commit2754908cf89ce3ec710122c599e01730ad0dc589
tree38169afcb6bf5cddcdc812f8c9ac88e05a1d045b
parent23bbc177d519d275070e527dd08974813969e617
scsi: snic: Replace spin_is_locked() with lockdep

lockdep_assert_held() is better suited to checking locking requirements, since
it won't get confused when someone else holds the lock. This is also a step
towards possibly removing spin_is_locked().

Signed-off-by: Lance Roy <ldr709@gmail.com>
Cc: Karan Tilak Kumar <kartilak@cisco.com>
Cc: Sesidhar Baddela <sebaddel@cisco.com>
Cc: "James E.J. Bottomley" <jejb@linux.vnet.ibm.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>
Cc: <linux-scsi@vger.kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/snic/snic_scsi.c