summaryrefslogtreecommitdiff
path: root/sys/kern/kern_rwlock.c
diff options
context:
space:
mode:
authorBjoern A. Zeeb <bz@FreeBSD.org>2009-08-14 21:46:54 +0000
committerBjoern A. Zeeb <bz@FreeBSD.org>2009-08-14 21:46:54 +0000
commit8d518523cc6a833a75eab9e1f7fc8b14371bb536 (patch)
treeea52f93659c64af89eda73d8980d2b5ab4e028a9 /sys/kern/kern_rwlock.c
parent21157ad3b1a7b0b37816f3ab79444d02c487dfc1 (diff)
downloadsrc-test2-8d518523cc6a833a75eab9e1f7fc8b14371bb536.tar.gz
src-test2-8d518523cc6a833a75eab9e1f7fc8b14371bb536.zip
Notes
Diffstat (limited to 'sys/kern/kern_rwlock.c')
-rw-r--r--sys/kern/kern_rwlock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c
index c07f595cb5a2..e2342506a0e5 100644
--- a/sys/kern/kern_rwlock.c
+++ b/sys/kern/kern_rwlock.c
@@ -174,6 +174,8 @@ rw_init_flags(struct rwlock *rw, const char *name, int opts)
MPASS((opts & ~(RW_DUPOK | RW_NOPROFILE | RW_NOWITNESS | RW_QUIET |
RW_RECURSE)) == 0);
+ ASSERT_ATOMIC_LOAD(rw->rw_lock, ("%s: rw_lock not aligned for %s: %p",
+ __func__, name, &rw->rw_lock));
flags = LO_UPGRADABLE;
if (opts & RW_DUPOK)