mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
Ignore DID_TARGET_FAILURE if status already set
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6526 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -3547,6 +3547,8 @@ static bool scst_check_auto_sense(struct scst_cmd *cmd)
|
||||
scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_write_error));
|
||||
else
|
||||
scst_set_cmd_error(cmd, SCST_LOAD_SENSE(scst_sense_read_error));
|
||||
} else if ((cmd->host_status == DID_TARGET_FAILURE) && (cmd->status != 0)) {
|
||||
/* It's OK, normal workflow, ignore */
|
||||
} else {
|
||||
TRACE(TRACE_SCSI|TRACE_MINOR_AND_MGMT_DBG, "Host "
|
||||
"status 0x%x received, returning HARDWARE ERROR "
|
||||
|
||||
Reference in New Issue
Block a user