sched-clear-pf-thread-bound-on-fallback-rq.patch
authorThomas Gleixner <tglx@linutronix.de>
Fri, 4 Nov 2011 19:48:36 +0000 (20:48 +0100)
committerClark Williams <williams@redhat.com>
Wed, 15 Feb 2012 16:32:51 +0000 (10:32 -0600)
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/sched.c

index 51c0ad657663151b28eaad0869731ab2f460df15..81b340df601ebc5e1fec9ff2903527924aefc083 100644 (file)
@@ -2570,7 +2570,12 @@ static int select_fallback_rq(int cpu, struct task_struct *p)
                printk(KERN_INFO "process %d (%s) no longer affine to cpu%d\n",
                                task_pid_nr(p), p->comm, cpu);
        }
-
+       /*
+        * Clear PF_THREAD_BOUND, otherwise we wreckage
+        * migrate_disable/enable. See optimization for
+        * PF_THREAD_BOUND tasks there.
+        */
+       p->flags &= ~PF_THREAD_BOUND;
        return dest_cpu;
 }