Commit 790ce737 authored by Tejun Heo's avatar Tejun Heo Committed by Greg Kroah-Hartman
Browse files

sched_ext: Make scx_group_set_weight() always update tg->scx.weight



[ Upstream commit c50784e9 ]

Otherwise, tg->scx.weight can go out of sync while scx_cgroup is not enabled
and ops.cgroup_init() may be called with a stale weight value.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Fixes: 81951366 ("sched_ext: Add cgroup support")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7ccaa5fa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment