Fixed a bug in the algorithm that decides when to send SRP_CRED_REQ.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-07-30 14:45:41 +00:00
parent ffe7409533
commit 02cfb12400

View File

@@ -1714,6 +1714,7 @@ static void srpt_handle_cred_rsp(struct srpt_rdma_ch *ch,
* variable managed by the initiator temporarily
* negative.
*/
ch->rq_size -= req_lim_delta;
atomic_sub(req_lim_delta, &ch->req_lim);
atomic_sub(req_lim_delta, &ch->req_lim_delta);
}