]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Pre-allocate backward rpc_rqst and send/receive buffers
authorChuck Lever <chuck.lever@oracle.com>
Mon, 20 Apr 2015 21:58:18 +0000 (17:58 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:46:01 +0000 (14:46 -0600)
commit4fd24cd808d4644c26bce606a27beb026f70b055
treeef9a2b3fafe68adca3f637a153a8a3db2bca5cff
parent33b61a16f8224ca8dc53cd1e82c486bf113d59d4
xprtrdma: Pre-allocate backward rpc_rqst and send/receive buffers

[ Proposed for v4.4 ]

xprtrdma's backward direction send and receive buffers are the same
size as the forechannel's inline threshold, and must be pre-
registered.

The consumer has no control over which receive buffer the adapter
chooses to catch an incoming backwards-direction call. Any receive
buffer can be used for either a forward reply or a backward call.
Thus both types of RPC message must all be the same size.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/xprtrdma/Makefile
net/sunrpc/xprtrdma/backchannel.c [new file with mode: 0644]
net/sunrpc/xprtrdma/transport.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h