• Rusty Russell's avatar
    [PATCH] Hotplug CPUs: Take cpu Lock Around Migration · d7517532
    Rusty Russell authored
    Grab cpu lock around sched_migrate_task() and sys_sched_setaffinity().
    This is a noop without CONFIG_HOTPLUG_CPU.
    
    The sched_migrate_task may have a performance penalty on NUMA if lots
    of exec rebalancing is happening, however this only applies to
    CONFIG_NUMA and CONFIG_HOTPLUG_CPU, which noone does at the moment
    anyway.
    
    Also, the scheduler in -mm solves the race another way, so this will
    vanish then.
    d7517532
sched.c 74.9 KB