]> git.ipfire.org Git - thirdparty/linux.git/commit
NFSv4.x: Directory delegations don't require any state recovery
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 6 Jan 2026 16:54:32 +0000 (11:54 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 7 Jan 2026 17:28:26 +0000 (12:28 -0500)
commitdf56ddd057424d21483bd0bee4da3632706d6606
tree17514a013c8843ebe91065aeddc621266ff569c1
parent3f77eda548c82564ae4a23c76b51d36c6e39c865
NFSv4.x: Directory delegations don't require any state recovery

The state recovery code in nfs_end_delegation_return() is intended to
allow regular files to recover cached open and lock state. It has no
function for directory delegations, and may cause corruption.

Fixes: 156b09482933 ("NFS: Request a directory delegation on ACCESS, CREATE, and UNLINK")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/delegation.c
fs/nfs/nfs4state.c