scx_rlfifo: operate in a more work-conserving way

Make scx_rlfifo even simpler and keep dispatching tasks even if the CPUs
are all busy.

This allows to better stress test the scx_rustland_core backend, by
using both the per-CPU DSQs and the global shared DSQ.

Signed-off-by: Andrea Righi <andrea.righi@linux.dev>
This commit is contained in:
Andrea Righi 2024-10-14 09:36:28 +02:00
parent b07de1d7d5
commit 763da6ab55

View File

@ -132,11 +132,6 @@ impl<'a> Scheduler<'a> {
// Dispatch the task.
self.bpf.dispatch_task(&dispatched_task).unwrap();
// Stop dispatching if all the CPUs are busy (select_cpu() couldn't find an idle CPU).
if cpu < 0 {
break;
}
}
// Notify the BPF component that tasks have been dispatched.