diff options
author | Bart Van Assche <[email protected]> | 2020-01-22 20:23:40 -0800 |
---|---|---|
committer | Martin K. Petersen <[email protected]> | 2020-02-10 22:46:55 -0500 |
commit | 2494c2868d6e0eaaefd42f4fd2d260a8c35d240d (patch) | |
tree | 72ec2fe88fe4345d24abfbf3fe89fc3eba3187d6 | |
parent | 3d8b24a0f438d812d14849bd42516f54e80b57e8 (diff) |
scsi: qla2xxx: Check locking assumptions at runtime in qla2x00_abort_srb()
Document the locking assumptions this function relies on and also verify
these locking assumptions at runtime.
Cc: Quinn Tran <[email protected]>
Cc: Daniel Wagner <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Acked-by: Himanshu Madhani <[email protected]>
Reviewed-by: Martin Wilck <[email protected]>
Reviewed-by: Roman Bolshakov <[email protected]>
Signed-off-by: Bart Van Assche <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index b520a980d1dc..79387ac8936f 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -1700,6 +1700,8 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, bool ret_cmd; uint32_t ratov_j; + lockdep_assert_held(qp->qp_lock_ptr); + if (qla2x00_chip_is_down(vha)) { sp->done(sp, res); return; |