• Heiko Carstens's avatar
    sched: fix missing locking in sched_domains code · 712555ee
    Heiko Carstens authored
    Concurrent calls to detach_destroy_domains and arch_init_sched_domains
    were prevented by the old scheduler subsystem cpu hotplug mutex. When
    this got converted to get_online_cpus() the locking got broken.
    Unlike before now several processes can concurrently enter the critical
    sections that were protected by the old lock.
    
    So use the already present doms_cur_mutex to protect these sections again.
    
    Cc: Gautham R Shenoy <ego@in.ibm.com>
    Cc: Paul Jackson <pj@sgi.com>
    Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    712555ee
sched.c 224 KB