mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-14 09:11:27 +00:00
- Fixed incorrect SCST state used on error path
- Small cleanups - ToDo entry added git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@557 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
3
srpt/ToDo
Normal file
3
srpt/ToDo
Normal file
@@ -0,0 +1,3 @@
|
||||
1. SRPT driver directly uses internal states of SCST core target state
|
||||
machine, which is bad, bad, bad and generally not acceptable. Only dev
|
||||
handler are allowed to use them. That should be fixed.
|
||||
@@ -669,19 +669,18 @@ static void srpt_handle_err_comp(struct srpt_rdma_ch *ch, struct ib_wc *wc)
|
||||
scmnd->sg_cnt = 0;
|
||||
}
|
||||
|
||||
if (scmnd->state == SCST_CMD_STATE_RDY_TO_XFER)
|
||||
if (scmnd->state == SCST_CMD_STATE_DATA_WAIT)
|
||||
scst_rx_data(scmnd,
|
||||
SCST_RX_STATUS_ERROR,
|
||||
SCST_CONTEXT_THREAD);
|
||||
else if (scmnd->state ==
|
||||
SCST_CMD_STATE_XMIT_WAIT)
|
||||
SCST_CMD_STATE_XMIT_WAIT)
|
||||
scst_tgt_cmd_done(scmnd,
|
||||
SCST_CONTEXT_DIRECT_ATOMIC);
|
||||
}
|
||||
} else
|
||||
srpt_reset_ioctx(ch, ioctx);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static void srpt_handle_send_comp(struct srpt_rdma_ch *ch,
|
||||
|
||||
Reference in New Issue
Block a user