mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-19 05:36:22 +00:00
qla2x00t-32gbit: 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 <qutran@marvell.com> Cc: Daniel Wagner <dwagner@suse.de> Link: https://lore.kernel.org/r/20200123042345.23886-2-bvanassche@acm.org Acked-by: Himanshu Madhani <hmadhani@marvell.com> Reviewed-by: Martin Wilck <mwilck@suse.com> Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [ commit 2494c2868d6e0eaaefd42f4fd2d260a8c35d240d upstream ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8785 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1737,6 +1737,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;
|
||||
|
||||
Reference in New Issue
Block a user