Relax and cleanup HARDWARE ERROR sense usage

HARDWARE ERROR sense is very strong considered be "internal failure", so
might lead to serios initiator side issues up to disconnect from device. In
many cases WRITE or READ ERROR sense can be used instead. All remaining
usages must be logged.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-07-04 02:46:49 +00:00
parent 2755c02421
commit 6e31fd8306
6 changed files with 30 additions and 19 deletions
+3 -1
View File
@@ -1401,7 +1401,9 @@ static void srpt_abort_cmd(struct srpt_send_ioctx *ioctx,
break;
case SRPT_STATE_NEED_DATA:
/* SCST_DATA_WRITE - RDMA read error or RDMA read timeout. */
scst_rx_data(scmnd, SCST_RX_STATUS_ERROR, context);
scst_set_cmd_error(scmnd,
SCST_LOAD_SENSE(scst_sense_write_error));
scst_rx_data(scmnd, SCST_RX_STATUS_ERROR_SENSE_SET, context);
break;
case SRPT_STATE_CMD_RSP_SENT:
/*