mbox series

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

Message ID 20250304130533.549840-1-lilingfeng3@huawei.com (mailing list archive)
Headers show
Series Ignore SB_RDONLY when mounting and remounting nfs | expand

Message

Li Lingfeng March 4, 2025, 1:05 p.m. UTC
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(+)