cgroup/cpuset: Make cpuset_attach_task() skip subpartitions CPUs for top_cpuset
authorWaiman Long <longman@redhat.com>
Tue, 11 Apr 2023 13:36:00 +0000 (09:36 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 12 Apr 2023 18:23:58 +0000 (08:23 -1000)
commit7e27cb6ad4d85fc8bac2a2a896da62ef66b8598e
treefcba6d0b65c67f720e6410ba684637295bf960bd
parenteee87853794187f6adbe19533ed79c8b44b36a91
cgroup/cpuset: Make cpuset_attach_task() skip subpartitions CPUs for top_cpuset

It is found that attaching a task to the top_cpuset does not currently
ignore CPUs allocated to subpartitions in cpuset_attach_task(). So the
code is changed to fix that.

Signed-off-by: Waiman Long <longman@redhat.com>
Reviewed-by: Michal Koutný <mkoutny@suse.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c