summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2008-07-30 21:12:15 +0000
committerjhb <jhb@FreeBSD.org>2008-07-30 21:12:15 +0000
commit785ebd6040fa324a6aa8946dcc8ed4962e6aed0f (patch)
tree36cebd1be2b3e80f44ed9721c17b63e2986c8fb4 /sys/vm
parent69486dc077cba43a3b3aa67e1ca229bc48fa9c1d (diff)
downloadFreeBSD-src-785ebd6040fa324a6aa8946dcc8ed4962e6aed0f.zip
FreeBSD-src-785ebd6040fa324a6aa8946dcc8ed4962e6aed0f.tar.gz
If the kernel has run out of metadata for swap, then explicitly panic()
instead of emitting a warning before deadlocking. MFC after: 1 month
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/swap_pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c
index 39af009..b00c67b 100644
--- a/sys/vm/swap_pager.c
+++ b/sys/vm/swap_pager.c
@@ -1712,7 +1712,7 @@ retry:
mtx_unlock(&swhash_mtx);
VM_OBJECT_UNLOCK(object);
if (uma_zone_exhausted(swap_zone))
- printf("swap zone exhausted, increase kern.maxswzone\n");
+ panic("swap zone exhausted, increase kern.maxswzone\n");
VM_WAIT;
VM_OBJECT_LOCK(object);
goto retry;
OpenPOWER on IntegriCloud