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 10:35:25 +0000 (12:35 +0200)
commit046803b74d510f6ea61b3890ba8a7a20120c9ef6
tree4474f876cf61994baf37844f0cf545c7ae6984e3
parent771d8aa02dac7dbd268570e15e1100ca1258801a
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