Messages in this thread Patch in this message |  | | | Date | Tue, 6 Dec 2011 11:29:33 +0800 | | From | Yong Zhang <> | | 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
|  |