Commit ba0232c0 authored by Dan Aloni's avatar Dan Aloni Committed by Zheng Zengkai
Browse files

nfs: fix broken handling of the softreval mount option

stable inclusion
from stable-v5.10.117
commit 2cb8689f45f2bf5843e60a028f0981a38fa2f5c4
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5L66B

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2cb8689f45f2bf5843e60a028f0981a38fa2f5c4



--------------------------------

[ Upstream commit 085d16d5 ]

Turns out that ever since this mount option was added, passing
`softreval` in NFS mount options cancelled all other flags while not
affecting the underlying flag `NFS_MOUNT_SOFTREVAL`.

Fixes: c74dfe97 ("NFS: Add mount option 'softreval'")
Signed-off-by: default avatarDan Aloni <dan.aloni@vastdata.com>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent 3378c3ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment