]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rcu: Permit rt_mutex_unlock() with irqs disabled
authorPaul E. McKenney <paul.mckenney@linaro.org>
Wed, 17 Aug 2011 00:46:46 +0000 (17:46 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Fri, 26 Aug 2011 04:42:08 +0000 (21:42 -0700)
commitc92407dbb8788f542a202cdf0aa14415b0770cd2
tree2500c0208141a5753dbcba75ab76d8386076be46
parent2b71aa9e1134844cd155c8931849bd5faa6803b0
rcu: Permit rt_mutex_unlock() with irqs disabled

Create a separate lockdep class for the rt_mutex used for RCU priority
boosting and enable use of rt_mutex_lock() with irqs disabled.  This
prevents RCU priority boosting from falling prey to deadlocks when
someone begins an RCU read-side critical section in preemptible state,
but releases it with an irq-disabled lock held.

Unfortunately, the scheduler's runqueue and priority-inheritance locks
still must either completely enclose or be completely enclosed by any
overlapping RCU read-side critical section.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcutree_plugin.h
kernel/rtmutex.c