diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-06-17 10:48:26 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-06-17 10:48:26 +0000 |
commit | 5108899466c6bc69f0728449c0c189de9177b4b8 (patch) | |
tree | 81818642cf9480714b433e7a3b3e600a28fc4557 | |
parent | 771b1ec768f93665464b623faa90530a595e6851 (diff) |
pool_setipl on all uvm pools.
ok kettenis@ visa@
-rw-r--r-- | sys/uvm/uvm_amap.c | 5 | ||||
-rw-r--r-- | sys/uvm/uvm_anon.c | 3 | ||||
-rw-r--r-- | sys/uvm/uvm_aobj.c | 4 | ||||
-rw-r--r-- | sys/uvm/uvm_map.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/sys/uvm/uvm_amap.c b/sys/uvm/uvm_amap.c index 3105b33b09c..5c83f748b00 100644 --- a/sys/uvm/uvm_amap.c +++ b/sys/uvm/uvm_amap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_amap.c,v 1.71 2016/05/26 13:37:26 stefan Exp $ */ +/* $OpenBSD: uvm_amap.c,v 1.72 2016/06/17 10:48:25 dlg Exp $ */ /* $NetBSD: uvm_amap.c,v 1.27 2000/11/25 06:27:59 chs Exp $ */ /* @@ -227,6 +227,7 @@ amap_init(void) /* Initialize the vm_amap pool. */ pool_init(&uvm_amap_pool, sizeof(struct vm_amap), 0, 0, PR_WAITOK, "amappl", NULL); + pool_setipl(&uvm_amap_pool, IPL_NONE); pool_sethiwat(&uvm_amap_pool, 4096); /* initialize small amap pools */ @@ -237,12 +238,14 @@ amap_init(void) (i + 1) * sizeof(struct vm_anon *); pool_init(&uvm_small_amap_pool[i], size, 0, 0, 0, amap_small_pool_names[i], NULL); + pool_setipl(&uvm_small_amap_pool[i], IPL_NONE); } pool_init(&uvm_amap_chunk_pool, sizeof(struct vm_amap_chunk) + UVM_AMAP_CHUNK * sizeof(struct vm_anon *), 0, 0, 0, "amapchunkpl", NULL); + pool_setipl(&uvm_amap_chunk_pool, IPL_NONE); pool_sethiwat(&uvm_amap_chunk_pool, 4096); } diff --git a/sys/uvm/uvm_anon.c b/sys/uvm/uvm_anon.c index d2738cad2ac..4316f1eca57 100644 --- a/sys/uvm/uvm_anon.c +++ b/sys/uvm/uvm_anon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_anon.c,v 1.46 2016/05/08 11:52:32 stefan Exp $ */ +/* $OpenBSD: uvm_anon.c,v 1.47 2016/06/17 10:48:25 dlg Exp $ */ /* $NetBSD: uvm_anon.c,v 1.10 2000/11/25 06:27:59 chs Exp $ */ /* @@ -50,6 +50,7 @@ uvm_anon_init(void) { pool_init(&uvm_anon_pool, sizeof(struct vm_anon), 0, 0, PR_WAITOK, "anonpl", NULL); + pool_setipl(&uvm_anon_pool, IPL_NONE); pool_sethiwat(&uvm_anon_pool, uvmexp.free / 16); } diff --git a/sys/uvm/uvm_aobj.c b/sys/uvm/uvm_aobj.c index 0a6371048ce..e4abe6398f2 100644 --- a/sys/uvm/uvm_aobj.c +++ b/sys/uvm/uvm_aobj.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_aobj.c,v 1.80 2015/08/21 16:04:35 visa Exp $ */ +/* $OpenBSD: uvm_aobj.c,v 1.81 2016/06/17 10:48:25 dlg Exp $ */ /* $NetBSD: uvm_aobj.c,v 1.39 2001/02/18 21:19:08 chs Exp $ */ /* @@ -799,9 +799,11 @@ uao_init(void) */ pool_init(&uao_swhash_elt_pool, sizeof(struct uao_swhash_elt), 0, 0, PR_WAITOK, "uaoeltpl", NULL); + pool_setipl(&uao_swhash_elt_pool, IPL_NONE); pool_init(&uvm_aobj_pool, sizeof(struct uvm_aobj), 0, 0, PR_WAITOK, "aobjpl", NULL); + pool_setipl(&uvm_aobj_pool, IPL_NONE); } /* diff --git a/sys/uvm/uvm_map.c b/sys/uvm/uvm_map.c index b8a1c9195c5..50504646028 100644 --- a/sys/uvm/uvm_map.c +++ b/sys/uvm/uvm_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_map.c,v 1.216 2016/06/13 17:14:09 kettenis Exp $ */ +/* $OpenBSD: uvm_map.c,v 1.217 2016/06/17 10:48:25 dlg Exp $ */ /* $NetBSD: uvm_map.c,v 1.86 2000/11/27 08:40:03 chs Exp $ */ /* @@ -2790,11 +2790,13 @@ uvm_map_init(void) /* initialize the map-related pools. */ pool_init(&uvm_vmspace_pool, sizeof(struct vmspace), 0, 0, PR_WAITOK, "vmsppl", NULL); + pool_setipl(&uvm_vmspace_pool, IPL_NONE); pool_init(&uvm_map_entry_pool, sizeof(struct vm_map_entry), 0, 0, PR_WAITOK, "vmmpepl", NULL); pool_setipl(&uvm_map_entry_pool, IPL_VM); pool_init(&uvm_map_entry_kmem_pool, sizeof(struct vm_map_entry), 0, 0, 0, "vmmpekpl", NULL); + pool_setipl(&uvm_map_entry_kmem_pool, IPL_NONE); pool_sethiwat(&uvm_map_entry_pool, 8192); uvm_addr_init(); |