summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-03-10 07:12:21 -1000
committerTejun Heo <tj@kernel.org>2026-03-10 07:12:21 -1000
commit7e92cf4354e9803cc7b8ed01f38371e0e89d2a0a (patch)
tree5cf17d0d5718da18df6aa75ce0aea64d6cb4b6a7
parent98059335382dc5870207d6a0c1c9e7a004d627ad (diff)
sched_ext: Fix sub_detach op check to test the parent's ops
sub_detach is the parent's op called to notify the parent that a child is detaching. Test parent->ops.sub_detach instead of sch->ops.sub_detach. Fixes: ebeca1f930ea ("sched_ext: Introduce cgroup sub-sched support") Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
-rw-r--r--kernel/sched/ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched/ext.c b/kernel/sched/ext.c
index 93a230859dd7..4fa0be4980d4 100644
--- a/kernel/sched/ext.c
+++ b/kernel/sched/ext.c
@@ -5438,7 +5438,7 @@ static void scx_sub_disable(struct scx_sched *sch)
*/
wake_up_all(&scx_unlink_waitq);
- if (sch->ops.sub_detach && sch->sub_attached) {
+ if (parent->ops.sub_detach && sch->sub_attached) {
struct scx_sub_detach_args sub_detach_args = {
.ops = &sch->ops,
.cgroup_path = sch->cgrp_path,