mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 18:21:24 +02:00
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>
This commit is contained in:
parent
a73aa3a568
commit
dad8365242
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user