]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit - fs/nfs/nfs4proc.c
NFSv4.1: Ask for no delegation on OPEN if using O_DIRECT
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 30 Jan 2015 19:21:14 +0000 (14:21 -0500)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Wed, 4 Feb 2015 15:35:32 +0000 (10:35 -0500)
commit6ae373394c4257bad562817aa60464ff7fe8f9c4
tree7f21050411045b77eb60c1080d230c3ea93a10f1
parent0e3b137fbf0f4ab901de58fcac7edb12922daa08
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>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h