Skip to contentSkip to conversation

NFS: Set the stable writes flag when initialising the super block

PATCH New [email protected] 1 participant 1 message Feb 12, 2021

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 1/1 NFS: Set the stable writes flag when initialising the super block

From: Trond Myklebust <[email protected]>

We need to wait for outstanding writes on the page to complete before we can update it.

---
 fs/nfs/fs_context.c | 2 ++
 1 file changed, 2 insertions(+)
fs/nfs/fs_context.c +2 -0
index b6be02aa79f0..971a9251c1d9 100644
@@ -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;
Signature · 1 line
2.29.2