]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
NFS: add a separate delegation return list
authorChristoph Hellwig <hch@lst.de>
Wed, 7 Jan 2026 07:27:13 +0000 (08:27 +0100)
committerAnna Schumaker <anna.schumaker@oracle.com>
Tue, 20 Jan 2026 19:49:47 +0000 (14:49 -0500)
commit0ebe655bd033fd84e312980c9eba199604631e7e
tree36ad0b5e3fae57cabd3f5a9dad112b1ee7fd0ced
parent85e056332840ec4a938cf7a082d8922533b3b169
NFS: add a separate delegation return list

Searching for returnable delegations in the per-server delegations list
can be very expensive.  While commit e04bbf6b1bbe ("NFS: Avoid quadratic
search when freeing delegations.") reduced the overhead a bit, the
fact that all the non-returnable delegations have to be searched limits
the amount of optimizations that can be done.

Fix this by introducing a separate list that only contains delegations
scheduled for return.

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