cgroup/cpuset: Include offline CPUs when tasks' cpumasks in top_cpuset are updated
authorWaiman Long <longman@redhat.com>
Fri, 17 Mar 2023 15:15:07 +0000 (11:15 -0400)
committerTejun Heo <tj@kernel.org>
Wed, 29 Mar 2023 18:42:09 +0000 (08:42 -1000)
commit6667439f51c446fead5d991ff49b842a811a6195
treee771e8f5dff7e00d0db60b364f39a1a70e8a32e6
parentdf59b72cd8fb8ca00301f47e65853efed195d23f
cgroup/cpuset: Include offline CPUs when tasks' cpumasks in top_cpuset are updated

Similar to commit 3fb906e7fabb ("group/cpuset: Don't filter offline
CPUs in cpuset_cpus_allowed() for top cpuset tasks"), the whole set of
possible CPUs including offline ones should be used for setting cpumasks
for tasks in the top cpuset when a cpuset partition is modified as the
hotplug code won't update cpumasks for tasks in the top cpuset when
CPUs become online or offline.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/cpuset.c