diff options
author | Steve French <stfrench@microsoft.com> | 2024-05-14 09:27:19 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-05-15 00:38:39 +0200 |
commit | edfc6481faf896301cab940da776229fe39e9fc9 (patch) | |
tree | 54eede9a9f5da29cf0a9cd25696b97d5d38d79b1 /fs/smb | |
parent | cifs: Fix locking in cifs_strict_readv() (diff) | |
download | linux-edfc6481faf896301cab940da776229fe39e9fc9.tar.xz linux-edfc6481faf896301cab940da776229fe39e9fc9.zip |
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>
Diffstat (limited to 'fs/smb')
-rw-r--r-- | fs/smb/client/inode.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c index e8bfeea23660..5d4b0fd3a59e 100644 --- a/fs/smb/client/inode.c +++ b/fs/smb/client/inode.c @@ -34,11 +34,8 @@ static void cifs_set_netfs_context(struct inode *inode) { struct cifsInodeInfo *cifs_i = CIFS_I(inode); - struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb); netfs_inode_init(&cifs_i->netfs, &cifs_req_ops, true); - if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO) - __set_bit(NETFS_ICTX_WRITETHROUGH, &cifs_i->netfs.flags); } static void cifs_set_ops(struct inode *inode) |