diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2023-11-14 17:40:40 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2023-11-14 17:40:40 +0100 |
commit | 2a0508d9d08f0c3e354044d4f48466ee0d225041 (patch) | |
tree | 0526c0e7a52f6dd7b1f03731f79c73166cd7af92 /drivers/scsi/qla2xxx | |
parent | Linux 6.7-rc1 (diff) | |
parent | scsi: ufs: qcom-ufs: dt-bindings: Document the SM8650 UFS Controller (diff) | |
download | linux-2a0508d9d08f0c3e354044d4f48466ee0d225041.tar.xz linux-2a0508d9d08f0c3e354044d4f48466ee0d225041.zip |
Merge branch '6.7/scsi-staging' into 6.7/scsi-fixes
Pull in queued fixes for 6.7
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_os.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 32d1e73e46ee..03348f605c2e 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -1837,8 +1837,16 @@ static void qla2x00_abort_srb(struct qla_qpair *qp, srb_t *sp, const int res, } spin_lock_irqsave(qp->qp_lock_ptr, *flags); - if (ret_cmd && blk_mq_request_started(scsi_cmd_to_rq(cmd))) - sp->done(sp, res); + switch (sp->type) { + case SRB_SCSI_CMD: + if (ret_cmd && blk_mq_request_started(scsi_cmd_to_rq(cmd))) + sp->done(sp, res); + break; + default: + if (ret_cmd) + sp->done(sp, res); + break; + } } else { sp->done(sp, res); } |