1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-25 07:49:18 +00:00
freebsd/sys/fs/nfsclient
Rick Macklem bb53f071e8 nfscl: Add support for read delegations and atomic upgrade
For NFSv4.1/4.2, an atomic upgrade of a delegation from a
read delegation to a write delegation is allowed and can
result in significantly improved performance.
This patch adds this upgrade to the NFSv4.1/4.2 client and
enables use of read delegations.

For a test case of building a FreeBSD kernel (sources and
output objects) over a NFSv4.2 mount, these changes reduced
the elapsed time by 30% and included a reduction of 80% for
RPC counts when delegations were enabled.  As such, with this
patch there are at least certain cases where enabling
delegations seems to be worth the increased complexity they
bring.

This patch should only affect the NFSv4.1/4.2 behaviour
when delegations are enabled, which is not the default.

MFC after:	1 month
2024-06-12 16:41:12 -07:00
..
nfs_clbio.c Revert "nfscl: Do not do readahead for directories" 2024-05-26 08:02:30 -07:00
nfs_clcomsubs.c
nfs_clkdtrace.c
nfs_clkrpc.c
nfs_clnfsiod.c nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-27 17:10:48 -07:00
nfs_clnode.c
nfs_clport.c
nfs_clrpcops.c nfscl: Add support for the NFSv4.1/4.2 WANT_xxx flags 2024-06-12 16:11:10 -07:00
nfs_clstate.c nfscl: Add support for read delegations and atomic upgrade 2024-06-12 16:41:12 -07:00
nfs_clsubs.c nfscl: Add support for read delegations and atomic upgrade 2024-06-12 16:41:12 -07:00
nfs_clvfsops.c
nfs_clvnops.c nfscl: Add support for read delegations and atomic upgrade 2024-06-12 16:41:12 -07:00
nfs_kdtrace.h
nfs.h nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-27 17:10:48 -07:00
nfsmount.h
nfsnode.h nfscl: Clear out a lot of cruft related to B_DIRECT 2024-04-27 17:10:48 -07:00
nlminfo.h