From: Peter Zijlstra Date: Thu, 17 Dec 2009 12:16:31 +0000 (+0100) Subject: sched: Fix broken assertion X-Git-Tag: v2.6.33-rc2~48^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=077614ee1e93245a3b9a4e1213659405dbeb0ba6;p=pandora-kernel.git sched: Fix broken assertion There's a preemption race in the set_task_cpu() debug check in that when we get preempted after setting task->state we'd still be on the rq proper, but fail the test. Check for preempted tasks, since those are always on the RQ. Signed-off-by: Peter Zijlstra LKML-Reference: <20091217121830.137155561@chello.nl> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed