diff options
author | attilio <attilio@FreeBSD.org> | 2007-11-14 21:21:48 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2007-11-14 21:21:48 +0000 |
commit | 4b290fe097cd667bda22db5b208b26a219e4f971 (patch) | |
tree | de307f268ebdeb83631c5561c1c07686d67c24ed /sys/kern | |
parent | 2bf11aa6d0d68c09dd37349626b65ab98b726be1 (diff) | |
download | FreeBSD-src-4b290fe097cd667bda22db5b208b26a219e4f971.zip FreeBSD-src-4b290fe097cd667bda22db5b208b26a219e4f971.tar.gz |
Remove a bogus KASSERT which will prevent rwlock to be acquired
recursively in exclusive mode with debugging kernels.
Submitted by: kmacy
Approved by: jeff
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_rwlock.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_rwlock.c b/sys/kern/kern_rwlock.c index eaae25d..809e526 100644 --- a/sys/kern/kern_rwlock.c +++ b/sys/kern/kern_rwlock.c @@ -186,9 +186,6 @@ _rw_wlock(struct rwlock *rw, const char *file, int line) MPASS(curthread != NULL); KASSERT(rw->rw_lock != RW_DESTROYED, ("rw_wlock() of destroyed rwlock @ %s:%d", file, line)); - KASSERT(rw_wowner(rw) != curthread, - ("%s (%s): wlock already held @ %s:%d", __func__, - rw->lock_object.lo_name, file, line)); WITNESS_CHECKORDER(&rw->lock_object, LOP_NEWORDER | LOP_EXCLUSIVE, file, line); __rw_wlock(rw, curthread, file, line); |