summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-11-18 08:59:47 +0000
committerkib <kib@FreeBSD.org>2016-11-18 08:59:47 +0000
commit295dea39fa111d8113d6b5bdb27633f38d3c6031 (patch)
tree60aac10597df5f466b2a00094392be476e1f17b5
parent6d62938c33e63fb7ec6e36199c10bd573599eb97 (diff)
downloadFreeBSD-src-295dea39fa111d8113d6b5bdb27633f38d3c6031.zip
FreeBSD-src-295dea39fa111d8113d6b5bdb27633f38d3c6031.tar.gz
MFC r308288:
Do not sleep in vm_wait() if pagedaemon did not yet started. Panic instead.
-rw-r--r--sys/vm/vm_page.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 8bf8549..dec3e4d 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -2744,6 +2744,8 @@ vm_wait(void)
msleep(&vm_pageout_pages_needed, &vm_page_queue_free_mtx,
PDROP | PSWP, "VMWait", 0);
} else {
+ if (__predict_false(pageproc == NULL))
+ panic("vm_wait in early boot");
if (!vm_pageout_wanted) {
vm_pageout_wanted = true;
wakeup(&vm_pageout_wanted);
OpenPOWER on IntegriCloud