From: Steven Rostedt Date: Wed, 29 Jul 2009 04:21:23 +0000 (-0400) Subject: sched: Add new prio to cpupri before removing old prio X-Git-Tag: v2.6.32-rc1~719^2~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3a2ae3d93c0f10d29c071f599764d00b8de00cb;p=pandora-kernel.git 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 Signed-off-by: Peter Zijlstra LKML-Reference: <20090729042526.438281019@goodmis.org> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed