]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFSv4: Don't free slots prematurely if requesting a directory delegation
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Fri, 2 Jan 2026 01:16:04 +0000 (20:16 -0500)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 5 Jan 2026 04:03:26 +0000 (23:03 -0500)
commit3f77eda548c82564ae4a23c76b51d36c6e39c865
tree8db25ae41b4f0b6bca8d2345ed88ca9ad079b8f4
parent105c2db2474f50f109082ab8d070efcc8c3d52bd
NFSv4: Don't free slots prematurely if requesting a directory delegation

When requesting a directory delegation, it is imperative to hold the
slot until the delegation state has been recorded. Otherwise, if a
recall comes in, the call to referring_call_exists() will assume the
processing is done, and when it doesn't find a delegation, it will
assume it has been returned.

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