diff options
author | jeff <jeff@FreeBSD.org> | 2002-04-08 21:08:17 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-04-08 21:08:17 +0000 |
commit | 2d373c52698f658c5972e4dfa2358302239b7736 (patch) | |
tree | b2d4e5022199a420169b8bdf98b3b0345b4303ae | |
parent | 1c2992c7a6b2a9aa51877d8239bcd4b4a15da914 (diff) | |
download | FreeBSD-src-2d373c52698f658c5972e4dfa2358302239b7736.zip FreeBSD-src-2d373c52698f658c5972e4dfa2358302239b7736.tar.gz |
Quiet witness warnings about acquiring several zone locks. In the case that
this happens it is OK.
-rw-r--r-- | sys/vm/uma_int.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h index 16c02a2..d0a55b2 100644 --- a/sys/vm/uma_int.h +++ b/sys/vm/uma_int.h @@ -283,7 +283,8 @@ void uma_large_free(uma_slab_t slab); /* Lock Macros */ #define ZONE_LOCK_INIT(z) \ - mtx_init(&(z)->uz_lock, (z)->uz_name, "UMA zone", MTX_DEF) + mtx_init(&(z)->uz_lock, (z)->uz_name, "UMA zone", \ + MTX_DEF | MTX_DUPOK) #define ZONE_LOCK_FINI(z) mtx_destroy(&(z)->uz_lock) #define ZONE_LOCK(z) mtx_lock(&(z)->uz_lock) #define ZONE_UNLOCK(z) mtx_unlock(&(z)->uz_lock) |