qla2x00t-32gbit: target: Add cmd->rsp_sent

Add cmd->rsp_sent to indicate that the SCSI status has been sent
successfully, so that SCST can be informed of any transport errors.
This will also be used for logging in later patches.

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
Link: https://patch.msgid.link/d4b0203f-7817-4517-9789-5866bb24fad7@cybernetics.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[ commit f4199d581256 upstream ]
This commit is contained in:
Tony Battersby
2025-10-14 11:44:52 +03:00
committed by Gleb Chesnokov
parent 22a6aabf23
commit 658dce1cae
2 changed files with 8 additions and 0 deletions

View File

@@ -4126,6 +4126,10 @@ static void qlt_do_ctio_completion(struct scsi_qla_host *vha,
if (cmd->state == QLA_TGT_STATE_PROCESSED) {
cmd->trc_flags |= TRC_CTIO_DONE;
if (likely(status == CTIO_SUCCESS))
cmd->rsp_sent = 1;
} else if (cmd->state == QLA_TGT_STATE_NEED_DATA) {
cmd->state = QLA_TGT_STATE_DATA_IN;

View File

@@ -922,6 +922,10 @@ struct qla_tgt_cmd {
unsigned int conf_compl_supported:1;
unsigned int sg_mapped:1;
unsigned int write_data_transferred:1;
/* Set if the SCSI status was sent successfully. */
unsigned int rsp_sent:1;
unsigned int q_full:1;
unsigned int term_exchg:1;
unsigned int cmd_sent_to_fw:1;