Skip to content

Commit d79ed37

Browse files
trondmypdamschuma-ntap
authored andcommitted
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 <[email protected]> Signed-off-by: Lance Shelton <[email protected]> Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Trond Myklebust <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 1f0a6b3 commit d79ed37

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/nfs/nfs4proc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1358,6 +1358,8 @@ nfs4_map_atomic_open_share(struct nfs_server *server,
13581358
/* res |= NFS4_SHARE_WANT_NO_PREFERENCE; */
13591359
if (server->caps & NFS_CAP_DELEGTIME)
13601360
res |= NFS4_SHARE_WANT_DELEG_TIMESTAMPS;
1361+
if (server->caps & NFS_CAP_OPEN_XOR)
1362+
res |= NFS4_SHARE_WANT_OPEN_XOR_DELEGATION;
13611363
out:
13621364
return res;
13631365
}

0 commit comments

Comments
 (0)