From: Andy Lutomirski Date: Sat, 29 Nov 2014 16:13:51 +0000 (-0800) Subject: sched: Add missing rcu protection to wake_up_all_idle_cpus X-Git-Tag: omap-for-v3.20/drop-legacy-3517~162^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7de1e8d5b2b2b35e71332fafb899f584597150;p=pandora-kernel.git sched: Add missing rcu protection to wake_up_all_idle_cpus 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") Signed-off-by: Andy Lutomirski Reviewed-by: Chuansheng Liu Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/729365dddca178506dfd0a9451006344cd6808bc.1417277372.git.luto@amacapital.net Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed