]> git.proxmox.com Git - mirror_spl-debian.git/commit
Remove the spinlocks for mutex_enter()/mutex_exit()
authorGunnar Beutner <gunnar@beutner.name>
Tue, 18 Oct 2011 00:54:35 +0000 (02:54 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 19 Oct 2011 16:58:57 +0000 (09:58 -0700)
commit66cdc93b8c030db70a50563ac26f02301dde30ff
tree06d1ddd26f802d91088e2aa0c0d0fcbafe8912e4
parent3160d4f56bf35492e9c400094f8c1ff2066d4459
Remove the spinlocks for mutex_enter()/mutex_exit()

The m_owner variable is protected by the mutex itself. Reading the variable
is guaranteed to be atomic (due to it being a word-sized reference) and
ACCESS_ONCE() takes care of read cache effects.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
include/sys/mutex.h