opnsense-src/sys
Rick Macklem cd5edc7db2 nfsd: Avoid acquiring a vnode for some NFSv4 Readdir operations
Without this patch, a NFSv4 Readdir operation acquires the vnode for
each entry in the directory.  If only the Type, Fileid, Mounted_on_fileid
and ReaddirError attributes are requested by a client, acquiring the vnode
is not necessary for non-directories.  Directory vnodes must be acquired
to check for server file system mount points.

This patch avoids acquiring the vnode, as above, resulting in a 3-8%
improvement in Readdir RPC RTT for some simple tests I did.

Note that only non-rdirplus NFSv4 mounts will benefit from this change.

Tested during a recent IETF NFSv4 Bakeathon testing event.

MFC after:	1 month
2023-10-17 13:55:48 -07:00
..
amd64 uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
arm uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
arm64 uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
bsm timerfd: Move implementation from linux compat to sys/kern 2023-08-24 14:28:56 -06:00
cam ctl: Use ctl_io_sbuf in ctl_process_done 2023-10-16 15:47:09 -07:00
cddl dtrace: remove x86 non-EARLY_AP_STARTUP support 2023-10-10 11:03:27 -04:00
compat linuxkpi: Handle direct-mapped addresses in linux_free_kmem() 2023-10-17 11:19:06 -04:00
conf kmsan: Set -fno-sanitize-memory-param-retval for now 2023-10-17 09:05:45 -04:00
contrib zfs: merge openzfs/zfs@8a7407012 2023-10-13 09:45:15 +02:00
crypto ossl: Rebuild the openssl asm 2023-10-02 17:12:50 +01:00
ddb ddb: Add sysctl flag CTLFLAG_TUN to loader tunable 2023-10-09 18:30:21 +08:00
dev acpi_pcib: Trust decoded bus range from _CRS over _BBN 2023-10-16 15:33:10 -07:00
dts sys: Remove $FreeBSD$: one-line bare tag 2023-08-16 11:55:17 -06:00
fs nfsd: Avoid acquiring a vnode for some NFSv4 Readdir operations 2023-10-17 13:55:48 -07:00
gdb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
geom geom_linux_lvm: Avoid removing from vg_list before inserting 2023-10-17 11:19:05 -04:00
gnu sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
i386 uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
isa sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
kern nmount(MNT_UPDATE): add optional generid fsid parameter 2023-10-17 19:40:12 +03:00
kgssapi sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
libkern sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
modules veriexec: Correctly export symbols 2023-10-15 22:29:18 +08:00
net lltable: fix ddb show llentry l3_addr pretty printer 2023-10-17 19:03:49 +02:00
net80211 net80211: pass __func__, __LINE__ also to ieee80211_alloc_node() 2023-10-06 10:50:06 +00:00
netgraph ng_eiface: switch VNETs when injecting mbufs into netgraph 2023-09-23 10:56:56 +02:00
netinet tcp: use signed IsLost() related accounting variables 2023-10-17 16:37:09 +02:00
netinet6 netinet6: Add sysctl flag CTLFLAG_TUN to loader tunables 2023-09-25 18:10:47 +08:00
netipsec sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
netlink netlink: cope with growing requests 2023-10-17 08:47:52 +02:00
netpfil pf: implement start/stop calls via netlink 2023-10-13 09:53:22 +02:00
netsmb sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfs sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
nfsclient sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nfsserver sys: Remove $FreeBSD$: one-line .h pattern 2023-08-16 11:54:18 -06:00
nlm sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
ofed ofed: mask seq_num identifier to occupy only 3 bytes 2023-08-22 16:09:13 -07:00
opencrypto sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
powerpc uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
riscv uiomove: Add some assertions 2023-10-17 09:12:19 -04:00
rpc sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
security cr_canseejailproc(): New privilege, no direct check for UID 0 2023-09-28 11:42:22 -03:00
sys mkimg: Ensure GPT Entry Array is at least 16k 2023-10-17 11:14:23 -06:00
teken teken: fix style in teken_wcwidth.h 2023-10-13 08:14:57 +03:00
tests netlink: move NETLINK define to opt_global.h 2023-10-13 09:23:47 +02:00
tools pccarddevs2h.awk: Remove 2023-08-25 15:12:44 -06:00
ufs ufs: restore name cache fast path lookup 2023-09-09 21:48:57 +00:00
vm uma.h: Fix a typo in a source code comment 2023-10-15 14:09:21 +02:00
x86 x86: Rename {stop,start}_emulating to fpu_{enable,disable} 2023-10-11 14:32:06 -07:00
xdr sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00
xen sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
Makefile sys: Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:54:58 -06:00
README.md sys/README.md: Add a section for documentation 2023-08-03 11:07:41 -03:00

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