summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_map.c
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2002-04-29 23:45:41 +0000
committerjeff <jeff@FreeBSD.org>2002-04-29 23:45:41 +0000
commitc52db1bfdfb3a9e4065f735384e8e23dd29a14c0 (patch)
tree6dec1f923097576eb3f5e981d5d602bbff1c0b68 /sys/vm/vm_map.c
parent1b161ee22037718913e8fcbbd1e19c367713e1b7 (diff)
downloadFreeBSD-src-c52db1bfdfb3a9e4065f735384e8e23dd29a14c0.zip
FreeBSD-src-c52db1bfdfb3a9e4065f735384e8e23dd29a14c0.tar.gz
Add a new zone flag UMA_ZONE_MTXCLASS. This puts the zone in it's own
mutex class. Currently this is only used for kmapentzone because kmapents are are potentially allocated when freeing memory. This is not dangerous though because no other allocations will be done while holding the kmapentzone lock.
Diffstat (limited to 'sys/vm/vm_map.c')
-rw-r--r--sys/vm/vm_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 0733662..b486cdb 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -159,7 +159,7 @@ vm_map_startup(void)
vm_map_zinit, vm_map_zfini, UMA_ALIGN_PTR, UMA_ZONE_NOFREE);
uma_prealloc(mapzone, MAX_KMAP);
kmapentzone = uma_zcreate("KMAP ENTRY", sizeof(struct vm_map_entry),
- NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
+ NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_MTXCLASS);
uma_prealloc(kmapentzone, MAX_KMAPENT);
mapentzone = uma_zcreate("MAP ENTRY", sizeof(struct vm_map_entry),
NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
OpenPOWER on IntegriCloud