]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/sched_ext: Fix dsq_move_to_local check
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Mon, 1 Jun 2026 15:53:48 +0000 (23:53 +0800)
committerTejun Heo <tj@kernel.org>
Mon, 1 Jun 2026 17:17:30 +0000 (07:17 -1000)
commitdad8365242595ab1f0a63cd3d8ad193e1e68b7fb
treefd253a0d02595f824df8dcc4b900539163206c90
parenta73aa3a5685e648e55787b461f6ee0558db4b0c8
selftests/sched_ext: Fix dsq_move_to_local check

scan_dsq_pool() checked == 0 against scx_bpf_dsq_move_to_local(),
which returns true on success. This inverted success and failure,
causing peek_dsq_dispatch() to double-dispatch on success and skip
the real_dsq fallback on failure.

Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/testing/selftests/sched_ext/peek_dsq.bpf.c