Print the pointer to the lock with the panic message. The previous
panic: rw lock not unlocked was not really helpful for debugging. Now one can at least call show lock <ptr> form ddb to learn more about the lock. MFC after: 3 days
This commit is contained in:
parent
e56900fc9f
commit
2430ab4629
@ -199,8 +199,8 @@ void
|
||||
rw_destroy(struct rwlock *rw)
|
||||
{
|
||||
|
||||
KASSERT(rw->rw_lock == RW_UNLOCKED, ("rw lock not unlocked"));
|
||||
KASSERT(rw->rw_recurse == 0, ("rw lock still recursed"));
|
||||
KASSERT(rw->rw_lock == RW_UNLOCKED, ("rw lock %p not unlocked", rw));
|
||||
KASSERT(rw->rw_recurse == 0, ("rw lock %p still recursed", rw));
|
||||
rw->rw_lock = RW_DESTROYED;
|
||||
lock_destroy(&rw->lock_object);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user