From d84effde0a5e64f3f09b3dc6270803a28010bc54 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 2 Oct 2015 02:30:13 +0000 Subject: [PATCH] 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 --- scst/src/scst_targ.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scst/src/scst_targ.c b/scst/src/scst_targ.c index 0380d73fe..dc66d98d7 100644 --- a/scst/src/scst_targ.c +++ b/scst/src/scst_targ.c @@ -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 "