]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dtrace: fix lock ordering issues, mutex_owned(), and mutex debugging
authorKris Van Hees <kris.van.hees@oracle.com>
Thu, 17 Oct 2013 23:18:44 +0000 (19:18 -0400)
committerKris Van Hees <kris.van.hees@oracle.com>
Wed, 23 Oct 2013 20:59:12 +0000 (16:59 -0400)
commit873e9ca16e918c76988004890ef5c9f5060669fd
tree02da21d0852c760b0877ee95aa304d18e3b76994
parentdf2a97c99c651bfde9daf496e0ba02aa829dc098
dtrace: fix lock ordering issues, mutex_owned(), and mutex debugging

Several cases of potential lock ordering issues were identified and resolved.
Both static and dynamic analysis of locking comes clean for DTrace after this
commit is applied.

The mutex_owned() function was not accounting for the possibility that a lock
might have an owner registered while unlocked.

Orabug: 17624236

Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
dtrace/dtrace_dev.c
dtrace/dtrace_probe.c
dtrace/dtrace_state.c
dtrace/include/dtrace/dtrace_impl_defines.h