diff options
author | Oleg Nesterov <oleg@redhat.com> | 2014-10-08 21:36:44 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2014-10-28 10:47:54 +0100 |
commit | 1a43a14a5bd9c32dbd7af35e35a5afa703944bcb (patch) | |
tree | dbbef5740b8e0851eef0c19760e548529076613c /include/asm-generic | |
parent | sched: Fix the PREEMPT_ACTIVE check in __trace_sched_switch_state() (diff) | |
download | linux-dev-1a43a14a5bd9c32dbd7af35e35a5afa703944bcb.tar.xz linux-dev-1a43a14a5bd9c32dbd7af35e35a5afa703944bcb.zip |
sched: Fix schedule_tail() to disable preemption
finish_task_switch() enables preemption, so post_schedule(rq) can be
called on the wrong (and even dead) CPU. Afaics, nothing really bad
can happen, but in this case we can wrongly clear rq->post_schedule
on that CPU. And this simply looks wrong in any case.
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Kirill Tkhai <tkhai@yandex.ru>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/20141008193644.GA32055@redhat.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'include/asm-generic')
0 files changed, 0 insertions, 0 deletions