Revert "nfs: ignore SB_RDONLY when mounting nfs"
This reverts commit 56a5d998c912566e4467487db7efe2818cce1e1f.
See the bug for more context. The short explanation is that the bug
which the commit claims to fix is that when a client mounts the same
directory as ro and rw from the same server, the second mount will be rw
instead of ro. This behavior dates back to 2007 and is arguably not a
bug to begin with. Even so, the attempted fix makes it so that *all*
directories mounted after a ro directory from the same server became ro,
which is definitely a bug and should be reverted while we wait for the
proposed fixes
(https://lore.kernel.org/lkml/20250304130533.549840-1-lilingfeng3@huawei.com/T/)
to be accepted upstream.
BUG=b/409333762
TEST=presubmit; create vm without this change, run the steps from
https://lore.kernel.org/all/12d7ea53-1202-4e21-a7ef-431c94758ce5@app.fastmail.com/T/,
and confirm that both directories are mounted ro; create a vm with this
change, run the same steps, and verify that the second directory is
mounted as rw
RELEASE_NOTE=Reverted a change in the linux kernel which caused nfs directories to unexpectedly be mounted as ro instead of rw.
cos-patch: bug
Change-Id: I38b3e3d9278c622ac56a5eff4321c595a3a2d7de
Signed-off-by: Kevin Berry <kpberry@google.com>
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/99601
Main-Branch-Verified: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com>
Reviewed-by: Anil Altinay <aaltinay@google.com>
Reviewed-by: Arnav Kansal <rnv@google.com>
Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/99861
1 file changed