freebsd-dev/sys
Konstantin Belousov 0190c38b9d swapoff_one(): only check free pages count manually turning swap off
When swap is turned off due to system shutdown or reboot, ignore the
check.  Problem is that the check is not accurate by any means, free
page count can legitimately be low while system still able to page in
everything from the swap.  Then, we turn swap off if swapping on
real file or some non-standard geom provider, and typically panic
when system appears to actually need to unavailable page.

For syscall, it is better to be safe than sorry.

Reported and tested by:	peterj
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D33147
2021-11-29 18:38:02 +02:00
..
amd64 x86 GENERIC/MINIMAL: group sc(4) devices together 2021-11-28 14:38:41 -05:00
arm vt: export RGB offsets with FBIO_GETRGBOFFS 2021-11-25 16:39:25 -03:00
arm64 Per-thread stack canary on arm64 2021-11-26 14:44:00 +00:00
bsm
cam vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
cddl Allow ddb and dtrace use the DMAP region on arm64 2021-10-01 11:27:33 +01:00
compat vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
conf Per-thread stack canary on arm64 2021-11-26 14:44:00 +00:00
contrib iwlwifi: import Intel's iwlwifi/mvm driver. 2021-11-28 19:17:04 +00:00
crypto aesni: plug a set-but-not-unused var in aesni_newsession 2021-11-24 16:25:50 +00:00
ddb
dev mmc: Fix HS200/HS400 capability check 2021-11-29 17:02:01 +01:00
dts add rk3328 overlay for enabling analog sound 2021-11-13 11:09:23 +02:00
fs fusefs: update atime on reads when using cached attributes 2021-11-28 18:53:31 -07:00
gdb
geom geom_multipath: plug set-but-not-used vars 2021-11-25 11:31:50 +00:00
gnu
i386 x86 GENERIC/MINIMAL: group sc(4) devices together 2021-11-28 14:38:41 -05:00
isa
kern linker_kldload_busy(): allow recursion 2021-11-28 10:36:09 +02:00
kgssapi
libkern
mips netinet: Deduplicate most in_cksum() implementations 2021-11-24 13:31:16 -05:00
modules iwlwifi: import Intel's iwlwifi/mvm driver. 2021-11-28 19:17:04 +00:00
net if_epair: ifdef vars only used with ALTQ 2021-11-24 21:28:54 +00:00
net80211 net80211: fix -Wunused-but-set-variable warnings 2021-11-24 17:39:19 +00:00
netgraph ng_bridge: count item allocation failures as memory failures 2021-11-23 10:05:36 -08:00
netinet tcp: Don't try to upgrade a read lock just for logging 2021-11-29 13:48:40 +01:00
netinet6 netinet: Remove unneeded mb_unmapped_to_ext() calls 2021-11-24 13:31:16 -05:00
netipsec netinet: Remove unneeded mb_unmapped_to_ext() calls 2021-11-24 13:31:16 -05:00
netpfil pf: add pf_bcmp_state_key 2021-11-28 20:15:45 +01:00
netsmb
nfs kernel: partially revert e9efb1125a15, default inet mask 2021-11-14 14:12:25 -06:00
nfsclient
nfsserver
nlm
ofed
opencrypto ktls: Split encrypt vs decrypt OCF counters. 2021-11-16 09:58:52 -08:00
powerpc powerpc64le: add LINT64LE kernel config 2021-11-29 12:08:26 -03:00
riscv netinet: Deduplicate most in_cksum() implementations 2021-11-24 13:31:16 -05:00
rpc mbuf: Only allow extpg mbufs if the system has a direct map 2021-11-16 13:31:04 -05:00
security vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
sys vfs: replace the MNTK_TEXT_REFS flag with VIRF_TEXT_REF 2021-11-27 23:07:25 +00:00
teken
tests
tools makesyscalls: strip _Contains_ argument annotations 2021-11-22 22:36:58 +00:00
ufs vfs: remove the unused thread argument from NDINIT* 2021-11-25 22:50:42 +00:00
vm swapoff_one(): only check free pages count manually turning swap off 2021-11-29 18:38:02 +02:00
x86 minidump: Parameterize minidumpsys() 2021-11-19 15:05:52 -04:00
xdr
xen xen/privcmd: fix MMAP_RESOURCE ioctl to copy out results 2021-11-18 09:46:44 +01:00
Makefile