Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit edfc648

Browse files
author
Steve French
committed
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: 3ee1a1f ("cifs: Cut over to using netfslib") Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 14b1cd2 commit edfc648

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

fs/smb/client/inode.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@
3434
static void cifs_set_netfs_context(struct inode *inode)
3535
{
3636
struct cifsInodeInfo *cifs_i = CIFS_I(inode);
37-
struct cifs_sb_info *cifs_sb = CIFS_SB(inode->i_sb);
3837

3938
netfs_inode_init(&cifs_i->netfs, &cifs_req_ops, true);
40-
if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_STRICT_IO)
41-
__set_bit(NETFS_ICTX_WRITETHROUGH, &cifs_i->netfs.flags);
4239
}
4340

4441
static void cifs_set_ops(struct inode *inode)

0 commit comments

Comments
 (0)