mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
MFC r205626:
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.
This commit is contained in:
parent
0b93ad54a2
commit
2287aa049c
1 changed files with 2 additions and 2 deletions
|
|
@ -196,8 +196,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…
Reference in a new issue