• Rusty Russell's avatar
    [PATCH] Hotplug CPUs: Keep IRQs off in Migration Thread Calling · 1329b6ab
    Rusty Russell authored
    Currently the migration thread re-enables irqs, then calls
    move_task_away which disables IRQs again and actually does the move.
    This means there is a race where the migration thread gets preempted,
    and the target CPU can go down.
    
    Hold irqs disabled in migration thread across move_task_away(), which
    now doesn't need to save flags (the other caller is the hotplug CPU
    code, where irqs are also disabled).
    1329b6ab
sched.c 74.9 KB