diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 064031bab..b192912ee 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3071,6 +3071,7 @@ static int srpt_xmit_response(struct scst_cmd *scmnd) && scst_cmd_get_adjusted_resp_data_len(scmnd)) { ret = srpt_xfer_data(ch, ioctx, scmnd); if (ret != SCST_TGT_RES_SUCCESS) { + srpt_set_cmd_state(ioctx, state); PRINT_ERROR("%s: tag= %llu xfer_data failed", __func__, scst_cmd_get_tag(scmnd)); goto out;