[PATCH 0/2] Ignore SB_RDONLY when mounting and remounting nfs

From: Li Lingfeng
Date: Tue Mar 04 2025 - 07:48:43 EST


When NFS_MOUNT_UNSHARED is not set, NFS forces the sharing of a
superblock among each filesystem that mounts sub-directories elonging to
a single exported root path.

To prevent interference between different filesystems, ignore SB_RDONLY
when mounting and remounting nfs.

Li Lingfeng (2):
nfs: clear SB_RDONLY before getting superblock
nfs: ignore SB_RDONLY when remounting nfs

fs/nfs/super.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)

--
2.31.1