freebsd-dev/sys
Konstantin Belousov 1771e987ca Do not sleep in vm_wait() if pagedaemon did not yet started. Panic instead.
Requests which cannot be satisfied by allocators at boot time often
have unrealizable parameters.  Waiting for the pagedaemon' start would
hang the boot if done in the thread0 context and just never succeed if
executed from another thread.  In fact, for very early stages, sleep
attempt panics with obscure diagnostic about the scheduler state, and
explicit panic in vm_wait() makes the investigation much shorter by
cut off the examination of the thread and scheduler.

Theoretically, some subsystem might grab a resource to exhaustion, and
free it later in the boot process.  If this unlikely scenario does
appear for real, the way to diagnose the trouble can be revisited.

Reported by:	emaste
Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D8421
2016-11-04 12:58:50 +00:00
..
amd64 Add BUF_TRACKING and FULL_BUF_TRACKING buffer debugging 2016-10-31 23:09:52 +00:00
arm TEGRA: Fix numerous issues in clock code. 2016-11-04 11:40:11 +00:00
arm64 Pull the common FDT interrupt values into a new header rather than be magic 2016-10-26 15:18:08 +00:00
boot efinet_dev_print should honor verbose option. 2016-11-02 06:37:35 +00:00
bsm
cam Check for lengths being <= 0. Note that this interface can only 2016-11-03 10:11:59 +00:00
cddl Fix ZIL records ordering when ZVOL opened both with and without FSYNC. 2016-11-01 16:03:31 +00:00
compat Tidy up ia32_sysvec sv_flags setting 2016-10-20 20:29:54 +00:00
conf Merge i.MX and PowerPC SDHCI drivers 2016-11-02 00:57:04 +00:00
contrib krping: Allow the underlying ib_device to handle DMA mappings. 2016-10-24 20:53:44 +00:00
crypto Fix C++ includability of crypto headers with static array sizes 2016-10-18 23:20:49 +00:00
ddb Determine the operand/address size of %cs in a new function 2016-09-25 16:30:29 +00:00
dev hyperv/vmbus: Reset ch_dev, once the child is deleted. 2016-11-04 01:14:41 +00:00
fs Allow some dotdot lookups in capability mode. 2016-11-02 12:43:15 +00:00
gdb
geom Add BUF_TRACKING and FULL_BUF_TRACKING buffer debugging 2016-10-31 23:09:52 +00:00
gnu Revert and redo r306083. 2016-09-22 15:17:36 +00:00
i386 Handle pmap_enter() over an existing 4/2M page in KVA on i386. 2016-10-28 11:53:22 +00:00
isa
kern Remove remnants of the recursive sleep support. Instead assert that 2016-11-02 20:57:20 +00:00
kgssapi
libkern
mips Use correct signal number for floating point exceptions. 2016-10-31 15:49:41 +00:00
modules o Add support for long double. 2016-11-03 13:06:17 +00:00
net Various fixes for ptnet/ptnetmap (passthrough of netmap ports). In detail: 2016-10-27 09:46:22 +00:00
net80211 [net80211] add comments! 2016-10-28 02:10:07 +00:00
netgraph
netinet Set slow start threshold more accurately on loss to be flightsize/2 instead of 2016-11-01 21:08:37 +00:00
netinet6 Make ICMPv6 hard error handling for TCP consistent with the ICMPv4 2016-10-21 10:32:57 +00:00
netipsec Remove the 4.3BSD compatible macro m_copy(), use m_copym() instead. 2016-09-15 07:41:48 +00:00
netnatm
netpfil Remove the mbuf tag after use (for reinjected packets). 2016-11-03 00:26:58 +00:00
netsmb
nfs
nfsclient
nfsserver
nlm
ofed Move the ConnectX-3 and ConnectX-2 driver from sys/ofed into sys/dev/mlx4 2016-09-30 08:23:06 +00:00
opencrypto Add support for the fpu_kern(9) KPI on arm64. It hooks into the existing 2016-10-20 09:22:10 +00:00
pc98 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
powerpc Add P1022 and compatible SVR IDs 2016-11-02 03:07:01 +00:00
riscv o Add support for long double. 2016-11-03 13:06:17 +00:00
rpc
security Don't check aq64_minfree which is unsigned for negative values. 2016-09-08 19:47:57 +00:00
sparc64 Fix building on i386 and arm. But 'public domain' headers on the files 2016-10-13 06:56:23 +00:00
sys Allow some dotdot lookups in capability mode. 2016-11-02 12:43:15 +00:00
teken
tests
tools
ufs ANSIfy ffs_subr.c 2016-10-31 20:43:43 +00:00
vm Do not sleep in vm_wait() if pagedaemon did not yet started. Panic instead. 2016-11-04 12:58:50 +00:00
x86 Add a witness check to enforce that no non-sleeping locks are held when 2016-11-03 23:11:33 +00:00
xdr
xen xen: add a grant-table user-space device 2016-10-31 13:12:58 +00:00
Makefile