summaryrefslogtreecommitdiff
path: root/fs/cifs/fs_context.h
diff options
context:
space:
mode:
authorSteve French <stfrench@microsoft.com>2021-10-14 15:54:26 -0500
committerSteve French <stfrench@microsoft.com>2021-11-02 13:13:34 -0500
commit7ae5e588b0a53a72819e661106cbe99dde83b41d (patch)
tree0d11c9dd5d009a1fcc04045210078d20276b622b /fs/cifs/fs_context.h
parent7be3248f313930ff3d3436d4e9ddbe9fccc1f541 (diff)
cifs: add mount parameter tcpnodelay
Although corking and uncorking the socket (which cifs.ko already does) should usually have the desired benefit, using the new tcpnodelay mount option causes tcp_sock_set_nodelay() to be set on the socket which may be useful in order to ensure that we don't ever have cases where the network stack is waiting on sending an SMB request until multiple SMB requests have been added to the send queue (since this could lead to long latencies). To enable it simply append "tcpnodelay" it to the mount options Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fs_context.h')
-rw-r--r--fs/cifs/fs_context.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/fs_context.h b/fs/cifs/fs_context.h
index 29601a4eb411..b2d22cf9cb18 100644
--- a/fs/cifs/fs_context.h
+++ b/fs/cifs/fs_context.h
@@ -98,6 +98,7 @@ enum cifs_param {
Opt_nosharesock,
Opt_persistent,
Opt_resilient,
+ Opt_tcp_nodelay,
Opt_domainauto,
Opt_rdma,
Opt_modesid,