]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Make scx_group_set_weight() always update tg->scx.weight
authorTejun Heo <tj@kernel.org>
Fri, 13 Jun 2025 23:23:07 +0000 (13:23 -1000)
committerTejun Heo <tj@kernel.org>
Tue, 17 Jun 2025 18:19:43 +0000 (08:19 -1000)
commitc50784e99f0e7199cdb12dbddf02229b102744ef
tree5473b1e221d49fceffc8c43a16777f198bb8a51d
parent47096d301e39f96962ca1fd6c7b71bfa796c53db
sched_ext: Make scx_group_set_weight() always update tg->scx.weight

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: Tejun Heo <tj@kernel.org>
Fixes: 819513666966 ("sched_ext: Add cgroup support")
Cc: stable@vger.kernel.org # v6.12+
kernel/sched/ext.c