Skip to content

Commit a022c9a

Browse files
Trond Myklebustgregkh
authored andcommitted
NFSv4: Don't clear capabilities that won't be reset
[ Upstream commit 31f1a96 ] Don't clear the capabilities that are not going to get reset by the call to _nfs4_server_capabilities(). Reported-by: Scott Haiden <scott.b.haiden@gmail.com> Fixes: b01f21c ("NFS: Fix the setting of capabilities when automounting a new filesystem") Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 9339b4e commit a022c9a

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/nfs/nfs4proc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3951,7 +3951,6 @@ int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle)
39513951
};
39523952
int err;
39533953

3954-
nfs_server_set_init_caps(server);
39553954
do {
39563955
err = nfs4_handle_exception(server,
39573956
_nfs4_server_capabilities(server, fhandle),

0 commit comments

Comments
 (0)