Commit d79ed371 authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker
Browse files

NFSv4: Ask for a delegation or an open stateid in OPEN



Turn on the optimisation to allow the client to request that the server
not return the open stateid when it returns a delegation.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: default avatarLance Shelton <lance.shelton@hammerspace.com>
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 1f0a6b3f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1358,6 +1358,8 @@ nfs4_map_atomic_open_share(struct nfs_server *server,
	/* res |= NFS4_SHARE_WANT_NO_PREFERENCE; */
	if (server->caps & NFS_CAP_DELEGTIME)
		res |= NFS4_SHARE_WANT_DELEG_TIMESTAMPS;
	if (server->caps & NFS_CAP_OPEN_XOR)
		res |= NFS4_SHARE_WANT_OPEN_XOR_DELEGATION;
out:
	return res;
}