]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nfscl: Do not do readahead for directories
authorRick Macklem <rmacklem@FreeBSD.org>
Fri, 10 May 2024 01:33:13 +0000 (18:33 -0700)
committerRick Macklem <rmacklem@FreeBSD.org>
Fri, 10 May 2024 01:35:10 +0000 (18:35 -0700)
commitfbe965591f8a0a32c805a279a2505d4c20d22d26
treef69cb4b5d9fd7d3650f05948435663c3b78ca1ce
parentf77b5b295da3146c3b601767cbc4e85e6713192c
nfscl: Do not do readahead for directories

For a very long time, the NFS client has done readahead for
directory blocks.  Unlike data blocks, the readahead cannot
begin until the Readdir RPC reply has been received, since
the directory offset cookie in that Readdir RPC reply is needed.
As such, the readahead is serialized and does not seem to
provide any real benefit.

Recent testing/benchmarking shows that removing this
readahead code for Readdir does not have a negative impact
on performance.

Therefore, this patch deletes the readahead code for Readdir,
which simplifies the code and may make future changes simpler.

MFC after: 1 month
sys/fs/nfsclient/nfs_clbio.c