cgroup/cpuset: Skip spread flags update on v2
authorWaiman Long <longman@redhat.com>
Sat, 12 Nov 2022 22:19:38 +0000 (17:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 20 Apr 2023 10:35:14 +0000 (12:35 +0200)
commitff5a4fe2598e83dc113baba9a12addbc077e030b
tree8fed7623d3f38aa6562e8ca7c7eeea93b40b9004
parent1058e9a130ce34675a337b1d925f9c7fe82c79db
cgroup/cpuset: Skip spread flags update on v2

[ Upstream commit 18f9a4d47527772515ad6cbdac796422566e6440 ]

Cpuset v2 has no spread flags to set. So we can skip spread
flags update if cpuset v2 is being used. Also change the name to
cpuset_update_task_spread_flags() to indicate that there are multiple
spread flags.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Stable-dep-of: 42a11bf5c543 ("cgroup/cpuset: Make cpuset_fork() handle CLONE_INTO_CGROUP properly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/cgroup/cpuset.c