dect
/
linux-2.6
Archived
13
0
Fork 0

svcrdma: Free context on ib_post_recv error

If there is an error posting the recv WR to the RQ, free the
context associated with the WR. This would leak a context when
asynchronous errors occurred on the transport while conccurent threads
were processing their RPC.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
This commit is contained in:
Tom Tucker 2008-04-25 14:11:31 -05:00
parent 120693d12c
commit 05a0826a6e
1 changed files with 2 additions and 0 deletions

View File

@ -524,6 +524,8 @@ int svc_rdma_post_recv(struct svcxprt_rdma *xprt)
recv_wr.wr_id = (u64)(unsigned long)ctxt;
ret = ib_post_recv(xprt->sc_qp, &recv_wr, &bad_recv_wr);
if (ret)
svc_rdma_put_context(ctxt, 1);
return ret;
}