mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-25 07:51:28 +00:00
ib_srpt: Fix error handling in srpt_xmit_response()
This patch fixes a regression introduced in patch "ib_srpt: Convert srpt_xfer_data() return value" (trunk r6103). git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6543 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1511,10 +1511,9 @@ static void srpt_handle_rdma_comp(struct srpt_rdma_ch *ch,
|
||||
{
|
||||
struct scst_cmd *cmd = &ioctx->cmd;
|
||||
|
||||
EXTRACHECKS_WARN_ON(ioctx->n_rdma <= 0);
|
||||
srpt_adjust_sq_wr_avail(ch, ioctx->n_rdma);
|
||||
|
||||
if (opcode == SRPT_RDMA_READ_LAST) {
|
||||
EXTRACHECKS_WARN_ON(ioctx->n_rdma <= 0);
|
||||
srpt_adjust_sq_wr_avail(ch, ioctx->n_rdma);
|
||||
if (srpt_test_and_set_cmd_state(ioctx, SRPT_STATE_NEED_DATA,
|
||||
SRPT_STATE_DATA_IN))
|
||||
scst_rx_data(cmd, SCST_RX_STATUS_SUCCESS, context);
|
||||
|
||||
Reference in New Issue
Block a user