Skip to contentSkip to conversation

sched_ext: Fix build error in cgroup_set_idle()

PATCH In review Andrea Righi 2 participants 2 messages Oct 13, 2025 – Oct 14, 2025

Subsystems (2)
lore
Share & tools
lore

Andrea Righi

author reviewer
#0 lore raw

PATCH 1/1 sched_ext: Fix build error in cgroup_set_idle()

Commit a5bd6ba30b336 ("sched_ext: Use cgroup_lock/unlock() to synchronize against cgroup operations") renamed scx_cgroup_rwsem to scx_cgroup_ops_rwsem.

Update cgroup_set_idle() accordingly to fix the resulting build error.

Fixes d579dc6eb4fd0 ("sched/ext: Implement cgroup_set_idle() callback")
---
 kernel/sched/ext.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/sched/ext.c +2 -2
index 228f4faef7670..430749ce46ab3 100644
@@ -3217,7 +3217,7 @@ void scx_group_set_idle(struct task_group *tg, bool idle)
 {
 	struct scx_sched *sch = scx_root;
 
-	percpu_down_read(&scx_cgroup_rwsem);
+	percpu_down_read(&scx_cgroup_ops_rwsem);
 
 	if (scx_cgroup_enabled && SCX_HAS_OP(sch, cgroup_set_idle))
 		SCX_CALL_OP(sch, SCX_KF_UNLOCKED, cgroup_set_idle, NULL,
@@ -3226,7 +3226,7 @@ void scx_group_set_idle(struct task_group *tg, bool idle)
 	/* Update the task group's idle state */
 	tg->scx.idle = idle;
 
-	percpu_up_read(&scx_cgroup_rwsem);
+	percpu_up_read(&scx_cgroup_ops_rwsem);
 }
 
 void scx_group_set_bandwidth(struct task_group *tg,
Signature · 1 line
2.51.0
reviewer
#1 lore raw
Quoted 8 lines · Andrea Righi

Commit a5bd6ba30b336 ("sched_ext: Use cgroup_lock/unlock() to synchronize against cgroup operations") renamed scx_cgroup_rwsem to scx_cgroup_ops_rwsem.

Update cgroup_set_idle() accordingly to fix the resulting build error.

Fixes d579dc6eb4fd0 ("sched/ext: Implement cgroup_set_idle() callback")

Oh, I fixed this by updating the top of the tree. Sorry about the breakage.

Thanks.

Signature · 1 line
tejun