• Waiman Long's avatar
    cgroup/cpuset: Inherit parent's load balance state in v2 · c8c92620
    Waiman Long authored
    Since commit f28e2244 ("cgroup/cpuset: Add a new isolated
    cpus.partition type"), the CS_SCHED_LOAD_BALANCE bit of a v2 cpuset
    can be on or off. The child cpusets of a partition root must have the
    same setting as its parent or it may screw up the rebuilding of sched
    domains. Fix this problem by making sure the a child v2 cpuset will
    follows its parent cpuset load balance state unless the child cpuset
    is a new partition root itself.
    
    Fixes: f28e2244 ("cgroup/cpuset: Add a new isolated cpus.partition type")
    Signed-off-by: default avatarWaiman Long <longman@redhat.com>
    Signed-off-by: default avatarTejun Heo <tj@kernel.org>
    c8c92620
cpuset.c 118 KB