1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +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:
Jeff Roberson 2009-03-14 11:43:38 +00:00
parent 04a2868980
commit d3df4af368
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189789

View File

@ -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__);