summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2003-01-25 18:45:55 +0000
committeralc <alc@FreeBSD.org>2003-01-25 18:45:55 +0000
commit1340379168346186889f32c8a4199329de4f660d (patch)
tree9a088d50c2a3ec995e9af2ce8c6c781e30aee37d /sys/vm
parent31e727bfc6c31c87c6600bfa372aaaadb3a5864a (diff)
downloadFreeBSD-src-1340379168346186889f32c8a4199329de4f660d.zip
FreeBSD-src-1340379168346186889f32c8a4199329de4f660d.tar.gz
Add MTX_DUPOK to the initialization of system map locks.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/vm_map.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_map.c b/sys/vm/vm_map.c
index 6d52a80..a4d6dcc 100644
--- a/sys/vm/vm_map.c
+++ b/sys/vm/vm_map.c
@@ -211,7 +211,7 @@ vm_map_zinit(void *mem, int size)
map->nentries = 0;
map->size = 0;
map->infork = 0;
- mtx_init(&map->system_mtx, "system map", NULL, MTX_DEF);
+ mtx_init(&map->system_mtx, "system map", NULL, MTX_DEF | MTX_DUPOK);
lockinit(&map->lock, PVM, "thrd_sleep", 0, LK_NOPAUSE);
}
@@ -543,7 +543,7 @@ void
vm_map_init(vm_map_t map, vm_offset_t min, vm_offset_t max)
{
_vm_map_init(map, min, max);
- mtx_init(&map->system_mtx, "system map", NULL, MTX_DEF);
+ mtx_init(&map->system_mtx, "system map", NULL, MTX_DEF | MTX_DUPOK);
lockinit(&map->lock, PVM, "thrd_sleep", 0, LK_NOPAUSE);
}
OpenPOWER on IntegriCloud