]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sched_ext: Choose the right sch->ops.name to output in the print_scx_info()
authorZqiang <qiang.zhang@linux.dev>
Wed, 25 Mar 2026 03:11:00 +0000 (11:11 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 25 Mar 2026 04:21:15 +0000 (18:21 -1000)
commit60d4b17e886a90e707eaa06f8b07539f603cec5b
tree44798237a7ddd68d89b3cf7f0a40f506ade2fea4
parent7ef26d62f3fd841fd18ab6fa93a6bc2de9d17dff
sched_ext: Choose the right sch->ops.name to output in the print_scx_info()

The print_scx_info() always output scx_root structure's->ops.name,
but for built with CONFIG_EXT_SUB_SCHED=y kernels, the tasks may be
attach an sub scx_sched structure. this commit therefore use the
scx_task_sched_rcu() to correctly get scx_sched structure to output
ops.name, and drop state check.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Zqiang <qiang.zhang@linux.dev>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c