mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 22:21:42 +00:00
NFS: Set the stable writes flag when initialising the super block
We need to wait for outstanding writes on the page to complete before we can update it. Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
a0492339fc
commit
6c17260ca4
@ -1512,6 +1512,8 @@ static int nfs_init_fs_context(struct fs_context *fc)
|
||||
ctx->selected_flavor = RPC_AUTH_MAXFLAVOR;
|
||||
ctx->minorversion = 0;
|
||||
ctx->need_mount = true;
|
||||
|
||||
fc->s_iflags |= SB_I_STABLE_WRITES;
|
||||
}
|
||||
fc->fs_private = ctx;
|
||||
fc->ops = &nfs_fs_context_ops;
|
||||
|
Loading…
Reference in New Issue
Block a user