mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-22 11:17:19 +00:00
- When a mutex is destroyed while locked we need to inform lock profiling
that it has been released.
This commit is contained in:
parent
04a2868980
commit
d3df4af368
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189789
@ -765,6 +765,7 @@ mtx_destroy(struct mtx *m)
|
||||
else
|
||||
curthread->td_locks--;
|
||||
|
||||
lock_profile_release_lock(&m->lock_object);
|
||||
/* Tell witness this isn't locked to make it happy. */
|
||||
WITNESS_UNLOCK(&m->lock_object, LOP_EXCLUSIVE, __FILE__,
|
||||
__LINE__);
|
||||
|
Loading…
Reference in New Issue
Block a user