summaryrefslogtreecommitdiff
path: root/net/sunrpc/.kunitconfig
diff options
context:
space:
mode:
authorDai Ngo <dai.ngo@oracle.com>2023-06-30 04:52:40 +0300
committerChuck Lever <chuck.lever@oracle.com>2023-08-30 00:45:22 +0300
commit1d3dd1d56ce8322fb5b2a143ec9ff38c703bfeda (patch)
tree93e1fe648a43c038a9bd35cfee6fe1e377e83c52 /net/sunrpc/.kunitconfig
parent50bce06f0e7993aeaa03d39a8f8979b31e5862bd (diff)
downloadlinux-1d3dd1d56ce8322fb5b2a143ec9ff38c703bfeda.tar.xz
NFSD: Enable write delegation support
This patch grants write delegations for OPEN with NFS4_SHARE_ACCESS_WRITE if there is no conflict with other OPENs. Write delegation conflicts with another OPEN, REMOVE, RENAME and SETATTR are handled the same as read delegation using notify_change, try_break_deleg. The NFSv4.0 protocol does not enable a server to determine that a conflicting GETATTR originated from the client holding the delegation versus coming from some other client. With NFSv4.1 and later, the SEQUENCE operation that begins each COMPOUND contains a client ID, so delegation recall can be safely squelched in this case. With NFSv4.0, however, the server must recall or send a CB_GETATTR (per RFC 7530 Section 16.7.5) even when the GETATTR originates from the client holding that delegation. An NFSv4.0 client can trigger a pathological situation if it always sends a DELEGRETURN preceded by a conflicting GETATTR in the same COMPOUND. COMPOUND execution will always stop at the GETATTR and the DELEGRETURN will never get executed. The server eventually revokes the delegation, which can result in loss of open or lock state. Tracepoint added to track whether read or write delegation is granted. Signed-off-by: Dai Ngo <dai.ngo@oracle.com> Signed-off-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/.kunitconfig')
0 files changed, 0 insertions, 0 deletions