Commit 31f1a960 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: Don't clear capabilities that won't be reset



Don't clear the capabilities that are not going to get reset by the call
to _nfs4_server_capabilities().

Reported-by: default avatarScott Haiden <scott.b.haiden@gmail.com>
Fixes: b01f21ca ("NFS: Fix the setting of capabilities when automounting a new filesystem")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 1b237f19
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4092,7 +4092,6 @@ int nfs4_server_capabilities(struct nfs_server *server, struct nfs_fh *fhandle)
	};
	int err;

	nfs_server_set_init_caps(server);
	do {
		err = nfs4_handle_exception(server,
				_nfs4_server_capabilities(server, fhandle),