smb3: fix perf regression with cached writes with netfs conversion
authorSteve French <stfrench@microsoft.com>
Tue, 14 May 2024 07:27:19 +0000 (02:27 -0500)
committerSteve French <stfrench@microsoft.com>
Tue, 14 May 2024 22:38:39 +0000 (17:38 -0500)
commitedfc6481faf896301cab940da776229fe39e9fc9
tree54eede9a9f5da29cf0a9cd25696b97d5d38d79b1
parent14b1cd25346b1d615616a9c2dfdad9b4e6581e0d
smb3: fix perf regression with cached writes with netfs conversion

Write through mode is for cache=none, not for default (when
caching is allowed if we have a lease). Some tests were running
much, much more slowly as a result of disabling caching of
writes by default.

Reviewed-by: David Howells <dhowells@redhat.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Fixes: 3ee1a1fc3981 ("cifs: Cut over to using netfslib")
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/inode.c