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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:25:41 +0000 (13:25 +0200)
commitcfde58a8e41f4b5a1015d6a7e289fe986594df37
tree3177bae6c9ebd6f2d49f139e9f04c42fd7c551b5
parentab2485eb5dfab4519a6551611a1dbd12d17b518d
cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset

[ Upstream commit ec5fbdfb99d18482619ac42605cb80fbb56068ee ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cgroup/cpuset.c