]> git.proxmox.com Git - mirror_spl.git/commit
Add mutex_enter_nested() which maps to mutex_lock_nested()
authorTim Chase <tim@onlight.com>
Fri, 20 Mar 2015 19:03:26 +0000 (14:03 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 20 Mar 2015 20:53:31 +0000 (13:53 -0700)
commit79a0056e137c9cc540eb9ff7327c85ac8d094e6c
tree51cf77e8b1c04e9de0ae008d6527dd757a0838bb
parent6ab08667a44458f775da9f0ecceddbcea1275746
Add mutex_enter_nested() which maps to mutex_lock_nested()

Also add support for the "name" parameter in mutex_init().  The name
allows for better diagnostics, namely in /proc/lock_stats when
lock debugging is enabled.  Nested mutexes are necessary to support
CONFIG_PROVE_LOCKING. ZoL can use mutex_enter_nested()'s "class" argument
to to convey the locking hierarchy.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tim Chase <tim@chase2k.com>
Closes #439
include/sys/mutex.h