opnsense-src/sys
Mark Johnston 7585c5db25 uma: Fix handling of reserves in zone_import()
Kegs with no items reserved have uk_reserve = 0.  So the check
keg->uk_reserve >= dom->ud_free_items will be true once all slabs are
depleted.  Then, rather than go and allocate a fresh slab, we return to
the cache layer.

The intent was to do this only when the keg actually has a reserve, so
modify the check to verify this first.  Another approach would be to
make uk_reserve signed and set it to -1 until uma_zone_reserve() is
called, but this requires a few casts elsewhere.

Fixes:	1b2dcc8c54 ("uma: Avoid depleting keg reserves when filling a bucket")
MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32516
2021-11-01 09:51:43 -04:00
..
amd64 linux: make PTRACE_SETREGS use a correct struct 2021-10-30 10:13:37 +01:00
arm arm: Remove obsolete comments 2021-10-27 09:44:58 -06:00
arm64 Print the correct register for the arm64 elr 2021-11-01 11:19:57 +00:00
bsm
cam ada: Fix intra-object buffer overread of identify strings 2021-10-27 18:38:37 +01:00
cddl
compat linux: Also translate the signal if the code is CLD_KILLED 2021-10-29 15:28:00 +01:00
conf Remove enetc_mdio driver 2021-10-29 10:08:26 +02:00
contrib Merge commit 'ce929fe84f9c453263af379f3b255ff8eca01d48' 2021-10-29 19:18:03 +02:00
crypto crypto: Support Chacha20-Poly1305 with a nonce size of 8 bytes. 2021-10-06 14:08:49 -07:00
ddb
dev iicoc: support building as a module 2021-11-01 12:33:39 +08:00
dts ipq4018: add a device tree file for the ASUS rt-ac58u router 2021-10-18 19:18:46 +00:00
fs nfscl: Do pNFS layout return_on_close synchronously 2021-10-31 16:31:31 -07:00
gdb
geom geli: eli data -> eli_data for consistency with other geom classes 2021-10-31 20:36:51 +00:00
gnu
i386 Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
isa
kern Extract proc_get_binpath() from sysctl_kern_proc_pathname() 2021-10-31 03:05:14 +02:00
kgssapi
libkern
mips Convert vm_page_alloc() callers to use vm_page_alloc_noobj(). 2021-10-19 21:22:56 -04:00
modules iicoc: support building as a module 2021-11-01 12:33:39 +08:00
net if_epair: delete mbuf tags 2021-10-28 10:41:16 +02:00
net80211 net80211: add a driver-private pointer to struct ieee80211_node 2021-10-31 19:08:28 +00:00
netgraph Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
netinet tcp: Rack might retransmit forever. 2021-10-29 17:37:49 -04:00
netinet6 net: Allow binding of unspecified address without address existance 2021-10-20 19:25:51 -04:00
netipsec
netpfil pf: fix dummynet + NAT 2021-10-28 10:41:17 +02:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed
opencrypto ktls: Fix assertion for TLS 1.0 CBC when using non-zero starting seqno. 2021-10-27 16:35:56 -07:00
powerpc Use the vm_radix_init() helper when initializing pmaps 2021-10-19 21:22:56 -04:00
riscv riscv: add iicbus and iicoc to GENERIC 2021-11-01 13:19:55 +08:00
rpc
security
sys Bump __FreeBSD_version following the libdialog shared library 2021-10-30 23:09:29 -07:00
teken
tests
tools ipq4018: add TCSR definitions from Linux. 2021-10-18 19:18:01 +00:00
ufs ufs: remove write-only variables 2021-10-21 21:40:46 +03:00
vm uma: Fix handling of reserves in zone_import() 2021-11-01 09:51:43 -04:00
x86 dmar: Disable protected memory regions after initialization 2021-10-29 10:08:25 +02:00
xdr
xen
Makefile