]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Pre-allocate Work Requests for backchannel
authorChuck Lever <chuck.lever@oracle.com>
Mon, 20 Apr 2015 22:06:11 +0000 (18:06 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:46:02 +0000 (14:46 -0600)
commit012f29d60adb4ec08b71ca6be95d83e5a42c744a
tree873fd7d22839b50d9db33712f4fff27f6e903ac4
parent4fd24cd808d4644c26bce606a27beb026f70b055
xprtrdma: Pre-allocate Work Requests for backchannel

[ Proposed for v4.4 ]

Pre-allocate extra send and receive Work Requests needed to handle
backchannel receives and sends.

The transport doesn't know how many extra WRs to pre-allocate until
the xprt_setup_backchannel() call, but that's long after the WRs are
allocated during forechannel setup.

So, use a fixed value for now.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/backchannel.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h