mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Cc: Karan Tilak Kumar <[email protected]> Cc: Sesidhar Baddela <[email protected]> Cc: "James E.J. Bottomley" <[email protected]> Cc: "Martin K. Petersen" <[email protected]> Cc: <[email protected]> Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
b51d577a51
commit
51aef71617
1 changed files with 2 additions and 2 deletions
|
|
@ -2001,7 +2001,7 @@ snic_dr_finish(struct snic *snic, struct scsi_cmnd *sc)
|
|||
}
|
||||
|
||||
dr_failed:
|
||||
SNIC_BUG_ON(!spin_is_locked(io_lock));
|
||||
lockdep_assert_held(io_lock);
|
||||
if (rqi)
|
||||
CMD_SP(sc) = NULL;
|
||||
spin_unlock_irqrestore(io_lock, flags);
|
||||
|
|
@ -2604,7 +2604,7 @@ snic_internal_abort_io(struct snic *snic, struct scsi_cmnd *sc, int tmf)
|
|||
ret = SUCCESS;
|
||||
|
||||
skip_internal_abts:
|
||||
SNIC_BUG_ON(!spin_is_locked(io_lock));
|
||||
lockdep_assert_held(io_lock);
|
||||
spin_unlock_irqrestore(io_lock, flags);
|
||||
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Reference in a new issue