[PATCH 3/3] rcu: use rt_mutex_lock_irqdisabled() in rcu_boost()

From: Yong Zhang
Date: Mon Dec 05 2011 - 22:29:51 EST


Otherwise we will get false positive warning from might_sleep()

Signed-off-by: Yong Zhang <yong.zhang0@xxxxxxxxx>
---
kernel/rcutree_plugin.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/kernel/rcutree_plugin.h b/kernel/rcutree_plugin.h
index 2020e8a..489b1cd 100644
--- a/kernel/rcutree_plugin.h
+++ b/kernel/rcutree_plugin.h
@@ -1237,7 +1237,7 @@ static int rcu_boost(struct rcu_node *rnp)
"rcu_boost_mutex");
t->rcu_boost_mutex = &mtx;
raw_spin_unlock(&rnp->lock); /* rrupts remain disabled. */
- rt_mutex_lock(&mtx); /* Side effect: boosts task t's priority. */
+ rt_mutex_lock_irqdisabled(&mtx); /* Side effect: boosts task t's priority. */
rt_mutex_unlock(&mtx); /* Keep lockdep happy. */
local_irq_restore(flags);

--
1.7.5.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/