diff options
author | Andy Lutomirski <luto@amacapital.net> | 2014-11-29 08:13:51 -0800 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-12-08 11:44:19 +0100 |
commit | fd7de1e8d5b2b2b35e71332fafb899f584597150 (patch) | |
tree | 7b0ff7aad0d8c984748557dfec52fad02b54a045 /fs | |
parent | 36ce98818a4df66c8134c31fd6e768b4119c7a90 (diff) | |
download | linux-fd7de1e8d5b2b2b35e71332fafb899f584597150.tar.bz2 |
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 <luto@amacapital.net>
Reviewed-by: Chuansheng Liu <chuansheng.liu@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/729365dddca178506dfd0a9451006344cd6808bc.1417277372.git.luto@amacapital.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions