From 02cfb12400bf774fdc77cf8b310e6f420c2eede3 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Fri, 30 Jul 2010 14:45:41 +0000 Subject: [PATCH] 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 --- srpt/src/ib_srpt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index c88ea73e7..4b29e6ed4 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -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); }