]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: fix delayed delegation return handling
authorChristoph Hellwig <hch@lst.de>
Wed, 28 Jan 2026 04:46:09 +0000 (05:46 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Fri, 30 Jan 2026 21:49:15 +0000 (16:49 -0500)
commit4039fbedcbcb022704ff45533aa7860ce036ee6b
tree8d1dba5732642d5b76e6dedcbba1ea6e276734f9
parent94b88865109c0ea10e5ba562a793673b4fb37113
NFS: fix delayed delegation return handling

Rework this code that was totally busted at least as of my most
recent changes.  Introduce a separate list for delayed delegations
so that they can't get lost and don't clutter up the returns list.
Add a missing spin_unlock in the helper marking it as a regular
pending return.

Fixes: 0ebe655bd033 ("NFS: add a separate delegation return list")
Reported-by: Chris Mason <clm@meta.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/client.c
fs/nfs/delegation.c
fs/nfs/delegation.h
fs/nfs/nfs4trace.h
include/linux/nfs_fs_sb.h