If the kernel has run out of metadata for swap, then explicitly panic()

instead of emitting a warning before deadlocking.

MFC after:	1 month
This commit is contained in:
John Baldwin 2008-07-30 21:12:15 +00:00
parent 4a67a0d994
commit 3677ad363b

View File

@ -1712,7 +1712,7 @@ swp_pager_meta_build(vm_object_t object, vm_pindex_t pindex, daddr_t swapblk)
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;