mirror of
https://github.com/torvalds/linux.git
synced 2024-11-22 12:11:40 +00:00
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: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Lance Shelton <lance.shelton@hammerspace.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
1f0a6b3fa7
commit
d79ed371d5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user