summaryrefslogtreecommitdiffstats
path: root/net/sunrpc/clnt.c
diff options
context:
space:
mode:
authorTrond Myklebust2018-09-03 23:37:36 +0200
committerTrond Myklebust2018-09-30 21:35:15 +0200
commit75891f502f5fc70f52a01af5b924384ed4866907 (patch)
treedae030f8d5914ed7fc87dbd7e6788804a5196a95 /net/sunrpc/clnt.c
parentSUNRPC: Improve latency for interactive tasks (diff)
downloadkernel-qcow2-linux-75891f502f5fc70f52a01af5b924384ed4866907.tar.gz
kernel-qcow2-linux-75891f502f5fc70f52a01af5b924384ed4866907.tar.xz
kernel-qcow2-linux-75891f502f5fc70f52a01af5b924384ed4866907.zip
SUNRPC: Support for congestion control when queuing is enabled
Both RDMA and UDP transports require the request to get a "congestion control" credit before they can be transmitted. Right now, this is done when the request locks the socket. We'd like it to happen when a request attempts to be transmitted for the first time. In order to support retransmission of requests that already hold such credits, we also want to ensure that they get queued first, so that we don't deadlock with requests that have yet to obtain a credit. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/clnt.c')
-rw-r--r--net/sunrpc/clnt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/sunrpc/clnt.c b/net/sunrpc/clnt.c
index 8dc3d33827c4..f03911f84953 100644
--- a/net/sunrpc/clnt.c
+++ b/net/sunrpc/clnt.c
@@ -1996,6 +1996,11 @@ call_transmit_status(struct rpc_task *task)
dprint_status(task);
xprt_end_transmit(task);
break;
+ case -EBADSLT:
+ xprt_end_transmit(task);
+ task->tk_action = call_transmit;
+ task->tk_status = 0;
+ break;
case -EBADMSG:
xprt_end_transmit(task);
task->tk_status = 0;