From f3c625e47a2d95607558d2577ee26580ed8e9a3a Mon Sep 17 00:00:00 2001 From: Jeff Roberson Date: Sat, 4 Oct 2003 14:21:53 +0000 Subject: [PATCH] - Use the UMA_ZONE_VM flag on the fakepg and object zones to prevent vm recursion and LORs. This may be necessary for other zones created in the vm but this needs to be verified. --- sys/vm/device_pager.c | 3 ++- sys/vm/vm_object.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/vm/device_pager.c b/sys/vm/device_pager.c index 85eeed03c165..14bbd704d527 100644 --- a/sys/vm/device_pager.c +++ b/sys/vm/device_pager.c @@ -95,7 +95,8 @@ dev_pager_init() sx_init(&dev_pager_sx, "dev_pager create"); mtx_init(&dev_pager_mtx, "dev_pager list", NULL, MTX_DEF); fakepg_zone = uma_zcreate("DP fakepg", sizeof(struct vm_page), - NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); + NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, + UMA_ZONE_NOFREE|UMA_ZONE_VM); } /* diff --git a/sys/vm/vm_object.c b/sys/vm/vm_object.c index 9d01be20044c..1f0f9ca66c58 100644 --- a/sys/vm/vm_object.c +++ b/sys/vm/vm_object.c @@ -250,7 +250,7 @@ vm_object_init(void) #else NULL, #endif - vm_object_zinit, NULL, UMA_ALIGN_PTR, UMA_ZONE_NOFREE); + vm_object_zinit, NULL, UMA_ALIGN_PTR, UMA_ZONE_VM|UMA_ZONE_NOFREE); uma_prealloc(obj_zone, VM_OBJECTS_INIT); }