Messages in this thread Patch in this message | | | Subject | [PATCH 13/12] sched: remove debug check | From | Peter Zijlstra <> | Date | Wed, 16 Dec 2009 22:17:18 +0100 |
| |
Since you're running into this warning and not seeing any obvious ill side-effects (you'd see some serious starvation issues), please stick this patch in for now.
I can't seem to convince myself if its a real problem or not, and how it could possibly happen, but my brain is giving up for today.
--- Index: linux-2.6/kernel/sched.c =================================================================== --- linux-2.6.orig/kernel/sched.c +++ linux-2.6/kernel/sched.c @@ -2036,14 +2036,6 @@ task_hot(struct task_struct *p, u64 now, void set_task_cpu(struct task_struct *p, unsigned int new_cpu) { -#ifdef CONFIG_SCHED_DEBUG - /* - * We should never call set_task_cpu() on a blocked task, - * ttwu() will sort out the placement. - */ - WARN_ON(p->state != TASK_RUNNING && p->state != TASK_WAKING); -#endif - trace_sched_migrate_task(p, new_cpu); if (task_cpu(p) == new_cpu)
| |