diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-13 20:48:30 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2017-04-13 20:48:30 +0000 |
commit | 907f3d97d32f7076658bdbc8305f0769f4c616cf (patch) | |
tree | 19db7c4cdda3c08a447706dd91ca73b0efc158e0 /sys/arch | |
parent | 451e362b97e14e01292d3f4a4d6466337b452452 (diff) |
Use the non-interrupt-safe pool allocator for the vp pool to avoid runninng
out of kva in the kmem_map. Avoids a hang when spawning a lot of processes.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/arm64/arm64/pmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/arm64/arm64/pmap.c b/sys/arch/arm64/arm64/pmap.c index 5e994f07b78..73413f0fb64 100644 --- a/sys/arch/arm64/arm64/pmap.c +++ b/sys/arch/arm64/arm64/pmap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pmap.c,v 1.31 2017/04/04 12:56:24 kettenis Exp $ */ +/* $OpenBSD: pmap.c,v 1.32 2017/04/13 20:48:29 kettenis Exp $ */ /* * Copyright (c) 2008-2009,2014-2016 Dale Rahn <drahn@dalerahn.com> * @@ -1474,8 +1474,8 @@ pmap_init(void) pool_init(&pmap_pted_pool, sizeof(struct pte_desc), 0, IPL_VM, 0, "pted", NULL); pool_setlowat(&pmap_pted_pool, 20); - pool_init(&pmap_vp_pool, sizeof(struct pmapvp2), PAGE_SIZE, IPL_VM, 0, - "vp", NULL); + pool_init(&pmap_vp_pool, sizeof(struct pmapvp2), PAGE_SIZE, IPL_VM, + PR_WAITOK, "vp", NULL); /* pool_setlowat(&pmap_vp_pool, 20); */ pmap_initialized = 1; |