summaryrefslogtreecommitdiff
path: root/net/sunrpc/rpcb_clnt.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-09-05 00:39:12 +0300
committerTrond Myklebust <trond.myklebust@hammerspace.com>2020-09-05 17:39:41 +0300
commit644c9f40cf71969f29add32f32349e71d4995c0b (patch)
treeb4055becff17fe31230bf1a6be2e20e5759eb6fb /net/sunrpc/rpcb_clnt.c
parent3d7a9520f0c3e6a68b6de8c5812fc8b6d7a52626 (diff)
downloadlinux-644c9f40cf71969f29add32f32349e71d4995c0b.tar.xz
NFS: Zero-stateid SETATTR should first return delegation
If a write delegation isn't available, the Linux NFS client uses a zero-stateid when performing a SETATTR. NFSv4.0 provides no mechanism for an NFS server to match such a request to a particular client. It recalls all delegations for that file, even delegations held by the client issuing the request. If that client happens to hold a read delegation, the server will recall it immediately, resulting in an NFS4ERR_DELAY/CB_RECALL/ DELEGRETURN sequence. Optimize out this pipeline bubble by having the client return any delegations it may hold on a file before it issues a SETATTR(zero-stateid) on that file. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net/sunrpc/rpcb_clnt.c')
0 files changed, 0 insertions, 0 deletions