summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/xprt_rdma.h
diff options
context:
space:
mode:
authorChuck Lever2015-12-16 23:22:31 +0100
committerAnna Schumaker2015-12-18 21:34:33 +0100
commit3cf4e169be95e1a3a70a063b6bd8103fbd5911f3 (patch)
tree59a9b60cf045fff58eb3331e2b7869e46b758b70 /net/sunrpc/xprtrdma/xprt_rdma.h
parentxprtrdma: Disable RPC/RDMA backchannel debugging messages (diff)
downloadkernel-qcow2-linux-3cf4e169be95e1a3a70a063b6bd8103fbd5911f3.tar.gz
kernel-qcow2-linux-3cf4e169be95e1a3a70a063b6bd8103fbd5911f3.tar.xz
kernel-qcow2-linux-3cf4e169be95e1a3a70a063b6bd8103fbd5911f3.zip
xprtrdma: Move struct ib_send_wr off the stack
For FRWR FASTREG and LOCAL_INV, move the ib_*_wr structure off the stack. This allows frwr_op_map and frwr_op_unmap to chain WRs together without limit to register or invalidate a set of MRs with a single ib_post_send(). (This will be for chaining LOCAL_INV requests). Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Tested-by: Devesh Sharma <devesh.sharma@avagotech.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/xprt_rdma.h')
-rw-r--r--net/sunrpc/xprtrdma/xprt_rdma.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/xprt_rdma.h b/net/sunrpc/xprtrdma/xprt_rdma.h
index ac7f8d4f632a..5c1e0c600faf 100644
--- a/net/sunrpc/xprtrdma/xprt_rdma.h
+++ b/net/sunrpc/xprtrdma/xprt_rdma.h
@@ -207,6 +207,10 @@ struct rpcrdma_frmr {
enum rpcrdma_frmr_state fr_state;
struct work_struct fr_work;
struct rpcrdma_xprt *fr_xprt;
+ union {
+ struct ib_reg_wr fr_regwr;
+ struct ib_send_wr fr_invwr;
+ };
};
struct rpcrdma_fmr {