Commit c75794d8 authored by Waiman Long's avatar Waiman Long Committed by Jialin Zhang
Browse files

cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset

stable inclusion
from stable-v5.10.150
commit cfde58a8e41f4b5a1015d6a7e289fe986594df37
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6D0XA

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=cfde58a8e41f4b5a1015d6a7e289fe986594df37



--------------------------------

[ Upstream commit ec5fbdfb ]

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: ee8dde0c ("cpuset: Add new v2 cpuset.sched.partition flag")
Signed-off-by: default avatarWaiman Long <longman@redhat.com>
Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJialin Zhang <zhangjialin11@huawei.com>
parent cd1da72d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment