mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
qla2x00t-32gbit, target: Fix sqa_on_hw_pending_cmd_timeout()
Only call scst_tgt_cmd_done() for the QLA_TGT_STATE_PROCESSED state. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1913,7 +1913,6 @@ static void sqa_on_hw_pending_cmd_timeout(struct scst_cmd *scst_cmd)
|
||||
SCST_LOAD_SENSE(scst_sense_internal_failure));
|
||||
scst_rx_data(scst_cmd, SCST_RX_STATUS_ERROR_SENSE_SET,
|
||||
SCST_CONTEXT_THREAD);
|
||||
goto out;
|
||||
break;
|
||||
case QLA_TGT_STATE_PROCESSED:
|
||||
if (!cmd->cmd_sent_to_fw) {
|
||||
@@ -1922,14 +1921,13 @@ static void sqa_on_hw_pending_cmd_timeout(struct scst_cmd *scst_cmd)
|
||||
} else {
|
||||
TRACE_MGMT_DBG("Force finishing cmd %p", cmd);
|
||||
}
|
||||
sqa_cleanup_hw_pending_cmd(vha, cmd);
|
||||
scst_set_delivery_status(scst_cmd, SCST_CMD_DELIVERY_FAILED);
|
||||
scst_tgt_cmd_done(scst_cmd, SCST_CONTEXT_THREAD);
|
||||
break;
|
||||
}
|
||||
|
||||
sqa_cleanup_hw_pending_cmd(vha, cmd);
|
||||
scst_set_delivery_status(scst_cmd, SCST_CMD_DELIVERY_FAILED);
|
||||
scst_tgt_cmd_done(scst_cmd, SCST_CONTEXT_THREAD);
|
||||
out:
|
||||
spin_unlock_irqrestore(qpair->qp_lock_ptr, flags);
|
||||
|
||||
TRACE_EXIT();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user