Chuck Lever 644c9f40cf 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>
2020-09-05 10:39:41 -04:00
..
2017-11-17 14:18:00 -08:00
2017-11-17 14:18:00 -08:00
2020-08-15 08:26:55 -07:00
2020-05-27 10:10:12 -04:00
2020-08-15 08:26:55 -07:00
2020-07-17 10:35:48 -04:00
2019-02-20 15:14:21 -05:00
2020-08-15 08:26:55 -07:00
2020-07-17 13:16:23 -04:00
2020-08-12 11:20:29 -04:00
2020-08-12 11:20:29 -04:00
2020-06-11 13:33:48 -04:00