Skip to content

Commit fc4a817

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 e630fa0 commit fc4a817

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
@@ -3957,7 +3957,6 @@ int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle)
39573957
};
39583958
int err;
39593959

3960-
nfs_server_set_init_caps(server);
39613960
do {
39623961
err = nfs4_handle_exception(server,
39633962
_nfs4_server_capabilities(server, fhandle),

0 commit comments

Comments
 (0)