summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/sunrpc.h
diff options
context:
space:
mode:
authorChuck Lever2018-02-28 21:30:54 +0100
committerAnna Schumaker2018-04-10 22:06:22 +0200
commitfb14ae8853e4f0347950f98e604fa2f4f3b3abe1 (patch)
tree734f67197f925ed212be6d3b4dea9757dd38bef6 /net/sunrpc/sunrpc.h
parentxprtrdma: Reduce number of MRs created by rpcrdma_mrs_create (diff)
downloadkernel-qcow2-linux-fb14ae8853e4f0347950f98e604fa2f4f3b3abe1.tar.gz
kernel-qcow2-linux-fb14ae8853e4f0347950f98e604fa2f4f3b3abe1.tar.xz
kernel-qcow2-linux-fb14ae8853e4f0347950f98e604fa2f4f3b3abe1.zip
xprtrdma: "Support" call-only RPCs
RPC-over-RDMA version 1 credit accounting relies on there being a response message for every RPC Call. This means that RPC procedures that have no reply will disrupt credit accounting, just in the same way as a retransmit would (since it is sent because no reply has arrived). Deal with the "no reply" case the same way. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/sunrpc.h')
-rw-r--r--net/sunrpc/sunrpc.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sunrpc/sunrpc.h b/net/sunrpc/sunrpc.h
index f2b7cb540e61..09a0315ea77b 100644
--- a/net/sunrpc/sunrpc.h
+++ b/net/sunrpc/sunrpc.h
@@ -37,12 +37,6 @@ struct rpc_buffer {
char data[];
};
-static inline int rpc_reply_expected(struct rpc_task *task)
-{
- return (task->tk_msg.rpc_proc != NULL) &&
- (task->tk_msg.rpc_proc->p_decode != NULL);
-}
-
static inline int sock_is_loopback(struct sock *sk)
{
struct dst_entry *dst;