diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2021-02-16 12:17:22 -0500 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2021-02-16 12:32:31 -0500 |
commit | e0a912e8ddbaa0536352dd8318845cdfdbab7bab (patch) | |
tree | 4f617fb832e8cd3a77a18941f7fd5a764169b59b /include/linux/sunrpc | |
parent | 0ac24c320c4d89a9de6ec802591398b8675c7b3c (diff) | |
download | linux-stable-e0a912e8ddbaa0536352dd8318845cdfdbab7bab.tar.gz linux-stable-e0a912e8ddbaa0536352dd8318845cdfdbab7bab.tar.bz2 linux-stable-e0a912e8ddbaa0536352dd8318845cdfdbab7bab.zip |
SUNRPC: Use TCP_CORK to optimise send performance on the server
Use a counter to keep track of how many requests are queued behind the
xprt->xpt_mutex, and keep TCP_CORK set until the queue is empty.
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Link: https://lore.kernel.org/linux-nfs/20210213202532.23146-1-trondmy@kernel.org/T/#u
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index b7ac7fe68306..bcc555c7ae9c 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h @@ -35,6 +35,8 @@ struct svc_sock { /* Total length of the data (not including fragment headers) * received so far in the fragments making up this rpc: */ u32 sk_datalen; + /* Number of queued send requests */ + atomic_t sk_sendqlen; struct page * sk_pages[RPCSVC_MAXPAGES]; /* received data */ }; |