mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 05:06:31 +00:00
qla2x00t-32gbit: Fix the build against kernel v3.18 and older
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1787,8 +1787,13 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res,
|
||||
}
|
||||
|
||||
spin_lock_irqsave(qp->qp_lock_ptr, *flags);
|
||||
#if HAVE_SCSI_MQ
|
||||
if (ret_cmd && blk_mq_request_started(cmd->request))
|
||||
sp->done(sp, res);
|
||||
#else
|
||||
if (ret_cmd && list_empty(&cmd->request->queuelist))
|
||||
sp->done(sp, res);
|
||||
#endif
|
||||
} else {
|
||||
sp->done(sp, res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user