summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/rpc_rdma.c
diff options
context:
space:
mode:
authorChuck Lever2015-10-24 23:27:59 +0200
committerAnna Schumaker2015-11-02 19:45:15 +0100
commit83128a60ca74e996c5e0336c4fff0579f4a8c909 (patch)
treecb6e6293efaafb397c3d314a3a4ca45b4256771a /net/sunrpc/xprtrdma/rpc_rdma.c
parentxprtrdma: Pre-allocate Work Requests for backchannel (diff)
downloadkernel-qcow2-linux-83128a60ca74e996c5e0336c4fff0579f4a8c909.tar.gz
kernel-qcow2-linux-83128a60ca74e996c5e0336c4fff0579f4a8c909.tar.xz
kernel-qcow2-linux-83128a60ca74e996c5e0336c4fff0579f4a8c909.zip
xprtrdma: Add support for sending backward direction RPC replies
Backward direction RPC replies are sent via the client transport's send_request method, the same way forward direction RPC calls are sent. 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>
Diffstat (limited to 'net/sunrpc/xprtrdma/rpc_rdma.c')
-rw-r--r--net/sunrpc/xprtrdma/rpc_rdma.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c
index 95774fcc1b43..b7a21e551888 100644
--- a/net/sunrpc/xprtrdma/rpc_rdma.c
+++ b/net/sunrpc/xprtrdma/rpc_rdma.c
@@ -441,6 +441,11 @@ rpcrdma_marshal_req(struct rpc_rqst *rqst)
enum rpcrdma_chunktype rtype, wtype;
struct rpcrdma_msg *headerp;
+#if defined(CONFIG_SUNRPC_BACKCHANNEL)
+ if (test_bit(RPC_BC_PA_IN_USE, &rqst->rq_bc_pa_state))
+ return rpcrdma_bc_marshal_reply(rqst);
+#endif
+
/*
* rpclen gets amount of data in first buffer, which is the
* pre-registered buffer.