mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-21 07:45:07 +00:00
Remove a bogus KASSERT which will prevent rwlock to be acquired
recursively in exclusive mode with debugging kernels. Submitted by: kmacy Approved by: jeff
This commit is contained in:
parent
4ec59b0317
commit
6f5c319c12
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173617
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue