Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

NFSv4: Fix the sync mount option for nfs4 mounts

The sync mount option stopped working for NFSv4 mounts after commit
c02d7adf8c5429727a98bad1d039bccad4c61c50 (NFSv4: Replace nfs4_path_walk() with
FS path lookup in a private namespace). If MS_SYNCHRONOUS is set in the
super_block that we're cloning from, then it should be set in the new
super_block as well.

Signed-off-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>

authored by

Scott Mayhew and committed by
Trond Myklebust
e890db01 f8806c84

+4
+4
fs/nfs/super.c
··· 2478 2478 if (server->flags & NFS_MOUNT_NOAC) 2479 2479 sb_mntdata.mntflags |= MS_SYNCHRONOUS; 2480 2480 2481 + if (mount_info->cloned != NULL && mount_info->cloned->sb != NULL) 2482 + if (mount_info->cloned->sb->s_flags & MS_SYNCHRONOUS) 2483 + sb_mntdata.mntflags |= MS_SYNCHRONOUS; 2484 + 2481 2485 /* Get a superblock - note that we may end up sharing one that already exists */ 2482 2486 s = sget(nfs_mod->nfs_fs, compare_super, nfs_set_super, flags, &sb_mntdata); 2483 2487 if (IS_ERR(s)) {