]> git.proxmox.com Git - mirror_spl.git/commit
Clear owner after dropping mutex
authorBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Nov 2010 22:56:53 +0000 (15:56 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 5 Nov 2010 18:52:30 +0000 (11:52 -0700)
commit8294c69bb759d2a4dc2e73f164cb37c297722ada
tree35a6fb0c94f2f0b35e9682ed1efcfd67151010f7
parent23aa63cbf5e712493d9439f888e426f89bb97857
Clear owner after dropping mutex

It's important to clear mp->owner after calling mutex_unlock()
because when CONFIG_DEBUG_MUTEXES is defined the mutex owner
is verified in mutex_unlock().  If we set it to NULL this check
fails and the lockdep support is immediately disabled.
include/sys/mutex.h