]> git.karo-electronics.de Git - linux-beck.git/commit
xprtrdma: Pre-allocate Work Requests for backchannel
authorChuck Lever <chuck.lever@oracle.com>
Sat, 24 Oct 2015 21:27:51 +0000 (17:27 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 2 Nov 2015 18:45:15 +0000 (13:45 -0500)
commit124fa17d3e33060fbb28e995a42c7f5c8b31b345
tree9bceb1dfc478c07561ae44f3d07540ea79796fd5
parentf531a5dbc451afb66e9d6c71a69e8358d1847969
xprtrdma: Pre-allocate Work Requests for backchannel

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>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Tested-By: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h