From: Li Lingfeng <lilingfeng3@huawei.com>
To: <trondmy@kernel.org>, <anna@kernel.org>
Cc: <linux-nfs@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
<ehagberg@janestreet.com>, <linux-nfs@dimebar.com>,
<yukuai1@huaweicloud.com>, <houtao1@huawei.com>,
<yi.zhang@huawei.com>, <yangerkun@huawei.com>,
<lilingfeng@huaweicloud.com>, <lilingfeng3@huawei.com>
Subject: [PATCH 0/2] Ignore SB_RDONLY when mounting and remounting nfs
Date: Tue, 4 Mar 2025 21:05:31 +0800 [thread overview]
Message-ID: <20250304130533.549840-1-lilingfeng3@huawei.com> (raw)
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
next reply other threads:[~2025-03-04 12:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-04 13:05 Li Lingfeng [this message]
2025-03-04 13:05 ` [PATCH 1/2] nfs: clear SB_RDONLY before getting superblock Li Lingfeng
2025-03-04 16:22 ` Eric Hagberg
2025-03-04 13:05 ` [PATCH 2/2] nfs: ignore SB_RDONLY when remounting nfs Li Lingfeng
2025-04-09 11:39 ` [PATCH 0/2] Ignore SB_RDONLY when mounting and " Li Lingfeng
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250304130533.549840-1-lilingfeng3@huawei.com \
--to=lilingfeng3@huawei.com \
--cc=anna@kernel.org \
--cc=ehagberg@janestreet.com \
--cc=houtao1@huawei.com \
--cc=lilingfeng@huaweicloud.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@dimebar.com \
--cc=linux-nfs@vger.kernel.org \
--cc=trondmy@kernel.org \
--cc=yangerkun@huawei.com \
--cc=yi.zhang@huawei.com \
--cc=yukuai1@huaweicloud.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox