diff options
author | Steven Rostedt <srostedt@redhat.com> | 2009-07-29 00:21:23 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-08-02 14:26:09 +0200 |
commit | c3a2ae3d93c0f10d29c071f599764d00b8de00cb (patch) | |
tree | e831ec79696bad3039fc9700bbb412ad38945985 /kernel/sched_rt.c | |
parent | da19ab510343c6496fe8b8f890091296032025c9 (diff) | |
download | linux-c3a2ae3d93c0f10d29c071f599764d00b8de00cb.tar.bz2 |
sched: Add new prio to cpupri before removing old prio
We need to add the new prio to the cpupri accounting before
removing the old prio. This is because removing the old prio
first will open a race window where the cpu will be removed
from pri_active. In this case the cpu will not be visible for
RT push and pulls. This could cause a RT task to not migrate
appropriately, and create a very large latency.
This bug was found with the use of ftrace sched events and
trace_printk.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20090729042526.438281019@goodmis.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_rt.c')
0 files changed, 0 insertions, 0 deletions