]> git.baikalelectronics.ru Git - kernel.git/commit
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:22:45 +0000 (13:22 +0200)
commit5b297619752daef663728157d060d5a6bd6d81fa
treec53f0c737a51ac0d6a08c4c9230e8ea5a5f90473
parentb4ce9d08b451a961098e71098625dd08c1e3be9a
cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset

[ Upstream commit 957db468d3179eec33b609282aaace47b6d926ca ]

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: 1f6711b45834 ("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