cifs: add mount parameter tcpnodelay
authorSteve French <stfrench@microsoft.com>
Thu, 14 Oct 2021 20:54:26 +0000 (15:54 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 2 Nov 2021 18:13:34 +0000 (13:13 -0500)
commit7ae5e588b0a53a72819e661106cbe99dde83b41d
tree0d11c9dd5d009a1fcc04045210078d20276b622b
parent7be3248f313930ff3d3436d4e9ddbe9fccc1f541
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>
fs/cifs/fs_context.c
fs/cifs/fs_context.h