summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-05-07 20:12:42 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-05-07 20:12:42 +0000
commit5b458e8d496bd0cdc94f0ec7a9ff9ae741d961ed (patch)
tree6159b73e9e098b39bf803a6b9e74326ab3bc1345 /sys/dev
parent4a02f1bb86ffaf58c243035d5c3117d4611db8eb (diff)
add a name to rwlock so that we can tell where procs are getting stuck
without breaking into ddb. doubles the size of rwlock [1], but moving forward this really helps. ok/tested pedro fgsch millert krw [1 - next person to add a field to this struct gets whipped with a wet noodle]
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/aacvar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/aacvar.h b/sys/dev/ic/aacvar.h
index 4a9dbf3c660..792df3e80ae 100644
--- a/sys/dev/ic/aacvar.h
+++ b/sys/dev/ic/aacvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aacvar.h,v 1.6 2006/04/22 02:36:26 brad Exp $ */
+/* $OpenBSD: aacvar.h,v 1.7 2006/05/07 20:12:41 tedu Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -218,7 +218,7 @@ extern struct aac_interface aac_rkt_interface;
/* Define the OS version specific locks */
typedef struct rwlock aac_lock_t;
#define AAC_LOCK_INIT(l, s) do { \
- rw_init((l)); \
+ rw_init((l), "aaclock"); \
AAC_DPRINTF(AAC_D_LOCK, ("%s: init lock @%s: %d\n", \
sc->aac_dev.dv_xname, __FUNCTION__, __LINE__)); \
} while (0)