]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Document why built-in DSQs are unsupported sources in scx_bpf_dsq_move_to_...
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Fri, 27 Mar 2026 09:50:39 +0000 (17:50 +0800)
committerTejun Heo <tj@kernel.org>
Fri, 27 Mar 2026 17:33:08 +0000 (07:33 -1000)
commit238aa43f0b77ea7db7f306e010f688c77439ee62
tree11862610c986c04a0950f53e72e15e841b32e0ac
parentd6edb15ad92cb61386c46662a5ae245c7feac5f0
sched_ext: Document why built-in DSQs are unsupported sources in scx_bpf_dsq_move_to_local()

Add a comment explaining the design intent behind rejecting built-in DSQs
(%SCX_DSQ_GLOBAL and %SCX_DSQ_LOCAL*) as sources. Local DSQs support
reenqueueing but the BPF scheduler cannot directly iterate or move tasks
from them. %SCX_DSQ_GLOBAL is similar but also doesn't support
reenqueueing because it maps to multiple per-node DSQs, making the scope
difficult to define.

Also annotate @dsq_id to make clear it must be a user-created DSQ.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c