]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xprtrdma: Introduce helpers for allocating MWs
authorChuck Lever <chuck.lever@oracle.com>
Tue, 25 Aug 2015 18:39:57 +0000 (12:39 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:45:56 +0000 (14:45 -0600)
commit62bad9072a41ab972d0d66b580e988f2da090f9b
tree50abbbbc348ad41a24ac7b0afcebaf5863994e1e
parent6538995fe91179d6da0825139cb9bbafd8eace50
xprtrdma: Introduce helpers for allocating MWs

[ Upstream commit 346aa66b2ab7988ca105f7fee5a968c11712b0d8 ]

We eventually want to handle allocating MWs one at a time, as
needed, instead of grabbing 64 and throwing them at each RPC in the
pipeline.

Add a helper for grabbing an MW off rb_mws, and a helper for
returning an MW to rb_mws. These will be used in a subsequent patch.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Tested-By: Devesh Sharma <devesh.sharma@avagotech.com>
Reviewed-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c
net/sunrpc/xprtrdma/xprt_rdma.h