mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
Updated error messages -- req_lim < 0 is not an internal error but can be caused by a buggy initiator.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1532 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
+3
-4
@@ -1050,8 +1050,8 @@ static void srpt_reset_ioctx(struct srpt_rdma_ch *ch, struct srpt_ioctx *ioctx)
|
||||
|
||||
req_lim = atomic_inc_return(&ch->req_lim);
|
||||
if (req_lim < 0 || req_lim > SRPT_RQ_SIZE)
|
||||
PRINT_ERROR("internal error: req_lim = %d out of range"
|
||||
" %d .. %d", req_lim, 0, SRPT_RQ_SIZE);
|
||||
PRINT_ERROR("req_lim = %d out of range %d .. %d",
|
||||
req_lim, 0, SRPT_RQ_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1600,8 +1600,7 @@ static void srpt_completion(struct ib_cq *cq, void *ctx)
|
||||
|
||||
req_lim = atomic_dec_return(&ch->req_lim);
|
||||
if (req_lim < 0)
|
||||
PRINT_ERROR("internal error: req_lim = %d < 0",
|
||||
req_lim);
|
||||
PRINT_ERROR("req_lim = %d < 0", req_lim);
|
||||
ioctx = sdev->ioctx_ring[wc.wr_id & ~SRPT_OP_RECV];
|
||||
srpt_handle_new_iu(ch, ioctx);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user