• Waiman Long's avatar
    cgroup/cpuset: Eliminate unncessary sched domains rebuilds in hotplug · ff0ce721
    Waiman Long authored
    It was found that some hotplug operations may cause multiple
    rebuild_sched_domains_locked() calls. Some of those intermediate calls
    may use cpuset states not in the final correct form leading to incorrect
    sched domain setting.
    
    Fix this problem by using the existing force_rebuild flag to inhibit
    immediate rebuild_sched_domains_locked() calls if set and only doing
    one final call at the end. Also renaming the force_rebuild flag to
    force_sd_rebuild to make its meaning for clear.
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    ff0ce721
cpuset.c 143 KB