• Waiman Long's avatar
    cgroup/cpuset: Extract out CS_CPU_EXCLUSIVE & CS_SCHED_LOAD_BALANCE handling · a86ce680
    Waiman Long authored
    Extract out the setting of CS_CPU_EXCLUSIVE and CS_SCHED_LOAD_BALANCE
    flags as well as the rebuilding of scheduling domains into the new
    update_partition_exclusive() and update_partition_sd_lb() helper
    functions to simplify the logic. The update_partition_exclusive()
    helper is called mainly at the beginning of the caller, but it may be
    called at the end too. The update_partition_sd_lb() helper is called
    at the end of the caller.
    
    This patch should reduce the chance that cpuset partition will end up
    in an incorrect state.
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    a86ce680
cpuset.c 119 KB