From: Cheng-Yang Chou Date: Mon, 1 Jun 2026 15:53:48 +0000 (+0800) Subject: selftests/sched_ext: Fix dsq_move_to_local check X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dad8365242595ab1f0a63cd3d8ad193e1e68b7fb;p=thirdparty%2Flinux.git 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 Signed-off-by: Tejun Heo --- diff --git a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c index 7f23fb17b1e0f..9e802b52b29eb 100644 --- a/tools/testing/selftests/sched_ext/peek_dsq.bpf.c +++ b/tools/testing/selftests/sched_ext/peek_dsq.bpf.c @@ -95,7 +95,7 @@ static int scan_dsq_pool(void) record_peek_result(task->pid); /* Try to move this task to local */ - if (!moved && scx_bpf_dsq_move_to_local(dsq_id, 0) == 0) { + if (!moved && scx_bpf_dsq_move_to_local(dsq_id, 0)) { moved = 1; break; }