cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset
authorWaiman Long <longman@redhat.com>
Thu, 1 Sep 2022 20:57:36 +0000 (16:57 -0400)
committerTejun Heo <tj@kernel.org>
Sun, 4 Sep 2022 20:47:27 +0000 (10:47 -1000)
commitec5fbdfb99d18482619ac42605cb80fbb56068ee
treee858d93cf30987e4ed0eba772bee4ba61a0b91a8
parent5251c6c436edf81e5f27de31ca34bcdc12fc94e1
cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset

Previously, update_tasks_cpumask() is not supposed to be called with
top cpuset. With cpuset partition that takes CPUs away from the top
cpuset, adjusting the cpus_mask of the tasks in the top cpuset is
necessary. Percpu kthreads, however, are ignored.

Fixes: ee8dde0cd2ce ("cpuset: Add new v2 cpuset.sched.partition flag")
Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c