RE: [PATCH urgent v2] sched: Add missing rcu protection to wake_up_all_idle_cpus

2014-11-30 Thread Liu, Chuansheng
> -Original Message- > From: Andy Lutomirski [mailto:l...@amacapital.net] > Sent: Sunday, November 30, 2014 12:14 AM > To: Ingo Molnar; Thomas Gleixner; linux-kernel@vger.kernel.org > Cc: Peter Zijlstra; Andy Lutomirski; Liu, Chuansheng > Subject: [PATCH urgent v2] sche

[PATCH urgent v2] sched: Add missing rcu protection to wake_up_all_idle_cpus

2014-11-29 Thread Andy Lutomirski
Locklessly doing is_idle_task(rq->curr) is only okay because of RCU protection. The older variant of the broken code checked rq->curr == rq->idle instead and therefore didn't need RCU. Fixes: f6be8af1c95d sched: Add new API wake_up_if_idle() to wake up the idle cpu Cc: Chuansheng Liu Signed-off-