Commit 7f80c0d
committed
sched_ext: Make scx_group_set_weight() always update tg->scx.weight
JIRA: https://issues.redhat.com/browse/RHEL-111810
commit c50784e
Author: Tejun Heo <tj@kernel.org>
Date: Fri Jun 13 13:23:07 2025 -1000
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: 8195136 ("sched_ext: Add cgroup support")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: Phil Auld <pauld@redhat.com>1 parent b583abf commit 7f80c0d
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4205 | 4205 | | |
4206 | 4206 | | |
4207 | 4207 | | |
4208 | | - | |
4209 | | - | |
4210 | | - | |
4211 | | - | |
4212 | | - | |
4213 | | - | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
| 4211 | + | |
| 4212 | + | |
| 4213 | + | |
4214 | 4214 | | |
4215 | 4215 | | |
4216 | 4216 | | |
| |||
0 commit comments