qla2x00t-32gbit: Use better sense data for transport error

After a transport error, return "aborted command" sense data rather than
"medium error / write error" (which is more appropriate for a problem
writing to the disk / tape / physical medium).

Signed-off-by: Tony Battersby <tonyb@cybernetics.com>
This commit is contained in:
Gleb Chesnokov
2023-01-13 10:53:53 +03:00
parent 0bfb746e52
commit 8e8670d43b

View File

@@ -537,7 +537,7 @@ static void sqa_qla2xxx_handle_data(struct qla_tgt_cmd *cmd)
case DIF_ERR_NONE:
default:
scst_set_cmd_error(scst_cmd,
SCST_LOAD_SENSE(scst_sense_write_error));
SCST_LOAD_SENSE(scst_sense_aborted_command));
break;
}
}