]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix broken handling of the softreval mount option
authorDan Aloni <dan.aloni@vastdata.com>
Sun, 8 May 2022 12:54:50 +0000 (15:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 May 2022 08:26:49 +0000 (10:26 +0200)
commita47facddb4e6953e9bf6575a8a5c4ed2b43815db
treeed6e91fb9ccf3aec2937ebb17e5a43d441ce3d3d
parenta75d2e22b3a159197357b00f2919eddd4df3872f
nfs: fix broken handling of the softreval mount option

[ Upstream commit b7c0a9b0a29eacb6e06647c233925e447155995d ]

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: d54be35c0426 ("NFS: Add mount option 'softreval'")
Signed-off-by: Dan Aloni <dan.aloni@vastdata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfs/fs_context.c