diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-05-26 00:43:38 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-05-26 12:36:13 +0200 |
commit | e86be3a04bc4aeaf12f93af35f08f8d4385bcd98 (patch) | |
tree | b57024cabf45ad2675422994e38cacb781d6aa53 /include | |
parent | SUNRPC: Fix Oops in xs_tcp_send_request() when transport is disconnected (diff) | |
download | linux-e86be3a04bc4aeaf12f93af35f08f8d4385bcd98.tar.xz linux-e86be3a04bc4aeaf12f93af35f08f8d4385bcd98.zip |
SUNRPC: More fixes for backlog congestion
Ensure that we fix the XPRT_CONGESTED starvation issue for RDMA as well
as socket based transports.
Ensure we always initialise the request after waking up from the backlog
list.
Fixes: e877a88d1f06 ("SUNRPC in case of backlog, hand free slots directly to waiting task")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index d81fe8b364d0..61b622e334ee 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -368,6 +368,8 @@ struct rpc_xprt * xprt_alloc(struct net *net, size_t size, unsigned int num_prealloc, unsigned int max_req); void xprt_free(struct rpc_xprt *); +void xprt_add_backlog(struct rpc_xprt *xprt, struct rpc_task *task); +bool xprt_wake_up_backlog(struct rpc_xprt *xprt, struct rpc_rqst *req); static inline int xprt_enable_swap(struct rpc_xprt *xprt) |