mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
Revert "nfs: ignore SB_RDONLY when remounting nfs"
[ Upstream commit400fa37afb] This reverts commit80c4de6ab4. Silently ignoring the "ro" and "rw" mount options causes user confusion, and regressions. Reported-by: Alkis Georgopoulos<alkisg@gmail.com> Cc: Li Lingfeng <lilingfeng3@huawei.com> Fixes:80c4de6ab4("nfs: ignore SB_RDONLY when remounting nfs") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f718f9ea60
commit
b2ed74f8cc
@@ -1020,16 +1020,6 @@ int nfs_reconfigure(struct fs_context *fc)
|
||||
|
||||
sync_filesystem(sb);
|
||||
|
||||
/*
|
||||
* The SB_RDONLY flag has been removed from the superblock during
|
||||
* mounts to prevent interference between different filesystems.
|
||||
* Similarly, it is also necessary to ignore the SB_RDONLY flag
|
||||
* during reconfiguration; otherwise, it may also result in the
|
||||
* creation of redundant superblocks when mounting a directory with
|
||||
* different rw and ro flags multiple times.
|
||||
*/
|
||||
fc->sb_flags_mask &= ~SB_RDONLY;
|
||||
|
||||
/*
|
||||
* Userspace mount programs that send binary options generally send
|
||||
* them populated with default values. We have no way to know which
|
||||
|
||||
Reference in New Issue
Block a user