diff options
author | jeff <jeff@FreeBSD.org> | 2009-03-14 11:43:38 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2009-03-14 11:43:38 +0000 |
commit | 7cd47702cc3b729fa8002cb2c9c16a4d908c7636 (patch) | |
tree | 8d07542c39a384ddc2169e276c73c3f3bc4f93aa /sys | |
parent | 4e3c0111d81b6722d70d89145f0a477afbe2d0fc (diff) | |
download | FreeBSD-src-7cd47702cc3b729fa8002cb2c9c16a4d908c7636.zip FreeBSD-src-7cd47702cc3b729fa8002cb2c9c16a4d908c7636.tar.gz |
- When a mutex is destroyed while locked we need to inform lock profiling
that it has been released.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/kern_mutex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c index 523d911..26f4958 100644 --- a/sys/kern/kern_mutex.c +++ b/sys/kern/kern_mutex.c @@ -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__); |