diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-02-09 16:04:15 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-04-05 09:04:20 -0400 |
commit | d737e5d418706abf32f6de68c3e09958516d422f (patch) | |
tree | 91351c667049d5f571a9a9cad788a7f3f0123cd9 /include | |
parent | 86438186a7b372728c74055d441549e17915cddb (diff) | |
download | linux-stable-d737e5d418706abf32f6de68c3e09958516d422f.tar.gz linux-stable-d737e5d418706abf32f6de68c3e09958516d422f.tar.bz2 linux-stable-d737e5d418706abf32f6de68c3e09958516d422f.zip |
SUNRPC: Set TCP_CORK until the transmit queue is empty
When we have multiple RPC requests queued up, it makes sense to set the
TCP_CORK option while the transmit queue is non-empty.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index d2e97ee802af..d81fe8b364d0 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h @@ -247,6 +247,7 @@ struct rpc_xprt { struct rpc_task * snd_task; /* Task blocked in send */ struct list_head xmit_queue; /* Send queue */ + atomic_long_t xmit_queuelen; struct svc_xprt *bc_xprt; /* NFSv4.1 backchannel */ #if defined(CONFIG_SUNRPC_BACKCHANNEL) |