OSDN Git Service

SUNRPC: Use TCP_CORK to optimise send performance on the server
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 16 Feb 2021 17:17:22 +0000 (12:17 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 16 Feb 2021 17:32:31 +0000 (12:32 -0500)
commite0a912e8ddbaa0536352dd8318845cdfdbab7bab
tree4f617fb832e8cd3a77a18941f7fd5a764169b59b
parent0ac24c320c4d89a9de6ec802591398b8675c7b3c
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>
include/linux/sunrpc/svcsock.h
net/sunrpc/svcsock.c