mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 19:21:26 +00:00
Converted a WARN_ON() into a PRINT_ERROR() statement.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1148,7 +1148,9 @@ static void srpt_reset_ioctx(struct srpt_rdma_ch *ch, struct srpt_ioctx *ioctx)
|
||||
int req_lim;
|
||||
|
||||
req_lim = atomic_inc_return(&ch->req_lim);
|
||||
WARN_ON(req_lim < 0 || req_lim > SRPT_RQ_SIZE);
|
||||
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);
|
||||
if (req_lim == SRPT_RQ_SIZE / 2
|
||||
&& atomic_xchg(&ch->send_cred_req, 0))
|
||||
srpt_alloc_and_send_cred_req(ch);
|
||||
|
||||
Reference in New Issue
Block a user