]> git.proxmox.com Git - mirror_spl.git/commit
Use kernel provided mutex owner
authorChunwei Chen <david.chen@osnexus.com>
Tue, 12 Apr 2016 19:05:14 +0000 (12:05 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 26 Apr 2016 00:04:07 +0000 (17:04 -0700)
commitcdd39dd2457ac57622339669db0536a580374bd3
tree71a77ae2758f91df5385fe4e6181eb755e619422
parent224817e2a81912b46453a96b9eec4804856c801b
Use kernel provided mutex owner

To reduce mutex footprint, we detect the existence of owner in kernel mutex,
and rely on it if it exists.

Note that before Linux 3.0, mutex owner is of type thread_info. Also note
that, in Linux 3.18, the condition for owner is changed from
CONFIG_DEBUG_MUTEXES || CONFIG_SMP to
CONFIG_DEBUG_MUTEXES || CONFIG_MUTEX_SPIN_ON_OWNER

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #540
config/spl-build.m4
include/sys/mutex.h