diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-01-30 14:21:14 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-02-04 10:35:32 -0500 |
commit | 6ae373394c4257bad562817aa60464ff7fe8f9c4 (patch) | |
tree | 7f21050411045b77eb60c1080d230c3ea93a10f1 /include/linux/nfs_xdr.h | |
parent | 0e3b137fbf0f4ab901de58fcac7edb12922daa08 (diff) | |
download | op-kernel-dev-6ae373394c4257bad562817aa60464ff7fe8f9c4.zip op-kernel-dev-6ae373394c4257bad562817aa60464ff7fe8f9c4.tar.gz |
NFSv4.1: Ask for no delegation on OPEN if using O_DIRECT
If we're using NFSv4.1, then we have the ability to let the server know
whether or not we believe that returning a delegation as part of our OPEN
request would be useful.
The feature needs to be used with care, since the client sending the request
doesn't necessarily know how other clients are using that file, and how
they may be affected by the delegation.
For this reason, our initial use of the feature will be to let the server
know when the client believes that handing out a delegation would not be
useful.
The first application for this function is when opening the file using
O_DIRECT.
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'include/linux/nfs_xdr.h')
-rw-r--r-- | include/linux/nfs_xdr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/nfs_xdr.h b/include/linux/nfs_xdr.h index 8140112..2c35e2a 100644 --- a/include/linux/nfs_xdr.h +++ b/include/linux/nfs_xdr.h @@ -326,6 +326,7 @@ struct nfs_openargs { struct nfs_seqid * seqid; int open_flags; fmode_t fmode; + u32 share_access; u32 access; __u64 clientid; struct stateowner_id id; @@ -393,6 +394,7 @@ struct nfs_closeargs { nfs4_stateid stateid; struct nfs_seqid * seqid; fmode_t fmode; + u32 share_access; const u32 * bitmask; }; |