]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee04c774a93924994882745e86f8d28e165fdf20
tree0d11c9dd5d009a1fcc04045210078d20276b622b
parenta1bbcd43f1c7ed0e808bc30f501c212ac2efa678
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