lkml.org 
[lkml]   [2011]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH 3/3] rcu: use rt_mutex_lock_irqdisabled() in rcu_boost()
Otherwise we will get false positive warning from might_sleep()

Signed-off-by: Yong Zhang <yong.zhang0@gmail.com>
---
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


\
 
 \ /
  Last update: 2011-12-06 04:31    [from the cache]
©2003-2011 Jasper Spaans