• Anton Blanchard's avatar
    [PATCH] fix busy loop in migration thread init · a34eae3b
    Anton Blanchard authored
    Since we do not set the task state to TASK_INTERRUPTIBLE, we busy loop.
    
    On larger SMP this can actually result in a lockup due to the way
    migration thread initalisation is done (nr_cpus threads are created
    and they all busy loop until the scheduler evenly distributes them,
    one on each cpu. With this rogue thread busy looping things can become
    unbalanced and the migration threads never distribute themselves onto
    all cpus).
    a34eae3b
sched.c 40 KB