Commit edfc6481 authored by Steve French's avatar Steve French

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: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarEnzo Matsumiya <ematsumiya@suse.de>
Fixes: 3ee1a1fc ("cifs: Cut over to using netfslib")
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 14b1cd25
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment