mirror of
https://github.com/SCST-project/scst.git
synced 2026-09-19 22:44:24 +00:00
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:
+3
-1
@@ -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:
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user