]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fs/nfs: Fix readdir slow-start regression
authorSagi Grimberg <sagi@grimberg.me>
Sat, 27 Dec 2025 10:46:29 +0000 (12:46 +0200)
committerAnna Schumaker <anna.schumaker@oracle.com>
Mon, 9 Feb 2026 18:39:38 +0000 (13:39 -0500)
commit42e7c876b182da65723700f6bc507a8aecb10d3b
tree9c53d2147a828978f9399cfbee6ae70fab115add
parent5248d8474e594d156bee1ed10339cc16e207a28b
fs/nfs: Fix readdir slow-start regression

Commit 580f236737d1 ("NFS: Adjust the amount of readahead
performed by NFS readdir") reduces the amount of readahead names
caching done by the client.

The downside of this approach is READDIR now may suffer from
a slow-start issue, where initially it will fetch names that fit
in a single page, then in 2, 4, 8 until the maximum supported
transfer size (usually 1M).

This patch tries to take a balanced approach between mitigating
the slow-start issue still maintaining some efficiency gains.

Fixes: 580f236737d1 ("NFS: Adjust the amount of readahead performed by NFS readdir")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
fs/nfs/dir.c