freebsd-src/sys
Rick Macklem 748f56c53f nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size
NFSv4.2 supports a Copy operation, which avoids file data being
read to the client and then written back to the server, if both
input and output files are on the same NFSv4.2 mount for
copy_file_range(2).

Unfortunately, this Copy operation can take a long time under
certain circumstances.  If this occurs concurrently with a RPC
that requires an exclusive lock on the nfsd such as ExchangeID
done for a new mount, the result can be an nfsd "stall" until
the Copy completes.

This patch adds a sysctl that can be set to limit the size of
a Copy operation or, if set to 0, disable Copy operations.

The use of this sysctl and other ways to avoid Copy operations
taking too long will be documented in the nfsd.4 man page by
a separate commit.

MFC after:	2 weeks
2024-03-15 18:04:37 -07:00
..
amd64
arm arm busdma: Fix parameter types to exclusion_bounce_check 2024-03-15 10:10:07 -07:00
arm64 arm64: Use void pointers for arguments to arm64_get_writable_addr 2024-03-15 10:10:24 -07:00
bsm
cam
cddl arm64: Use void pointers for arguments to arm64_get_writable_addr 2024-03-15 10:10:24 -07:00
compat LinuxKPI: 802.11: return proper value for IEEE80211_CRYPTO_AES_CCM 2024-03-12 22:59:11 +00:00
conf Update to bring the rack stack with all its fixes in. 2024-03-12 07:55:02 -04:00
contrib ath_hal/ar9300: allow JUPITER cards to read eeprom 2024-03-12 21:56:56 +00:00
crypto
ddb
dev if_wg: use proper barriers around pkt->p_state 2024-03-14 20:19:21 -05:00
dts
fs nfsd: Add a sysctl to limit NFSv4.2 Copy RPC size 2024-03-15 18:04:37 -07:00
gdb
geom
gnu
i386
isa new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
kern vfs_vnops.c: Use va_bytes >= va_size hint to avoid SEEK_DATA/SEEKHOLE 2024-03-14 17:35:32 -07:00
kgssapi
libkern
modules Update to bring the rack stack with all its fixes in. 2024-03-12 07:55:02 -04:00
net vnet: remove unneeded backslash 2024-03-15 12:17:04 -07:00
net80211
netgraph
netinet rack: don't define TCPOUTFLAGS 2024-03-13 21:07:59 -07:00
netinet6
netipsec
netlink netlink: fix route protocol constant values to match Linux 2024-03-11 08:50:46 -07:00
netpfil
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto
powerpc new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
riscv new-bus: Remove the 'rid' and 'type' arguments from BUS_*ACTIVATE_RESOURCE 2024-03-13 15:05:54 -07:00
rpc
security
sys Bump __FreeBSD_version for bus resource API change 2024-03-13 15:14:23 -07:00
teken
tests
tools
ufs
vm
x86 new-bus: Remove the 'rid' and 'type' arguments from BUS_RELEASE_RESOURCE 2024-03-13 15:05:54 -07:00
xdr
xen
Makefile
README.md

FreeBSD Kernel Source:

This directory contains the source files and build glue that make up the FreeBSD kernel and its modules, including both original and contributed software.

Kernel configuration files are located in the conf/ subdirectory of each architecture. GENERIC is the configuration used in release builds. NOTES contains documentation of all possible entries. LINT is a compile-only configuration used to maximize build coverage and detect regressions.

Documentation:

Source code documentation is maintained in a set of man pages, under section 9. These pages are located in share/man/man9, from the top-level of the src tree. Consult intro(9) for an overview of existing pages.

Some additional high-level documentation of the kernel is maintained in the Architecture Handbook.

Source Roadmap:

Directory Description
amd64 AMD64 (64-bit x86) architecture support
arm 32-bit ARM architecture support
arm64 64-bit ARM (AArch64) architecture support
cam Common Access Method storage subsystem - cam(4) and ctl(4)
cddl CDDL-licensed optional sources such as DTrace
conf kernel build glue
compat Linux compatibility layer, FreeBSD 32-bit compatibility
contrib 3rd-party imported software such as OpenZFS
crypto crypto drivers
ddb interactive kernel debugger - ddb(4)
fs most filesystems, excluding UFS, NFS, and ZFS
dev device drivers and other arch independent code
gdb kernel remote GDB stub - gdb(4)
geom GEOM framework - geom(4)
i386 i386 (32-bit x86) architecture support
kern main part of the kernel
libkern libc-like and other support functions for kernel use
modules kernel module infrastructure
net core networking code
net80211 wireless networking (IEEE 802.11) - net80211(4)
netgraph graph-based networking subsystem - netgraph(4)
netinet IPv4 protocol implementation - inet(4)
netinet6 IPv6 protocol implementation - inet6(4)
netipsec IPsec protocol implementation - ipsec(4)
netpfil packet filters - ipfw(4), pf(4), and ipfilter(4)
opencrypto OpenCrypto framework - crypto(7)
powerpc PowerPC/POWER (32 and 64-bit) architecture support
riscv 64-bit RISC-V architecture support
security security facilities - audit(4) and mac(4)
sys kernel headers
tests kernel unit tests
ufs Unix File System - ffs(7)
vm virtual memory system
x86 code shared by AMD64 and i386 architectures