summaryrefslogtreecommitdiffstats
path: root/sys/vm/uma_int.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2002-04-04 21:03:38 +0000
committerjhb <jhb@FreeBSD.org>2002-04-04 21:03:38 +0000
commitdb9aa81e239bb1c46b3b7ba560474cd954b78bf3 (patch)
treef7344c6a10fdc020dd02fe2ee1f244cb56f92bb6 /sys/vm/uma_int.h
parent5b964d2945fa9a17daef9bc1e6dbbcb4f7154379 (diff)
downloadFreeBSD-src-db9aa81e239bb1c46b3b7ba560474cd954b78bf3.zip
FreeBSD-src-db9aa81e239bb1c46b3b7ba560474cd954b78bf3.tar.gz
Change callers of mtx_init() to pass in an appropriate lock type name. In
most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
Diffstat (limited to 'sys/vm/uma_int.h')
-rw-r--r--sys/vm/uma_int.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/vm/uma_int.h b/sys/vm/uma_int.h
index ffb8603..80ff331 100644
--- a/sys/vm/uma_int.h
+++ b/sys/vm/uma_int.h
@@ -281,13 +281,15 @@ void uma_large_free(uma_slab_t slab);
/* Lock Macros */
-#define ZONE_LOCK_INIT(z) mtx_init(&(z)->uz_lock, (z)->uz_name, MTX_DEF)
+#define ZONE_LOCK_INIT(z) \
+ mtx_init(&(z)->uz_lock, (z)->uz_name, "UMA zone", MTX_DEF)
#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)
#define CPU_LOCK_INIT(z, cpu) \
- mtx_init(&(z)->uz_cpu[(cpu)].uc_lock, (z)->uz_lname, MTX_DUPOK|MTX_DEF)
+ mtx_init(&(z)->uz_cpu[(cpu)].uc_lock, (z)->uz_lname, "UMA cpu", \
+ MTX_DEF | MTX_DUPOK)
#define CPU_LOCK_FINI(z, cpu) \
mtx_destroy(&(z)->uz_cpu[(cpu)].uc_lock)
OpenPOWER on IntegriCloud