scx/rust/scx_rustland_core/assets
Andrea Righi 5db0908530 scx_rustland_core: make sure to use a valid CPU during direct dispatch
We may end up selecting an invalid CPU (according to the task's cpumask)
when dispatching the task via dispatch_direct_cpu().

When this happens simply return an error and do not dispatch the task
and let the caller handle the error: in the context of select_cpu() we
can simply ignore the dispatch and return the target CPU; in the context
of FIFO mode dispatch we can fallback to SCX_DSQ_LOCAL if the target CPU
is not valid.

This fixes issue #353.

Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
2024-06-25 14:11:46 +02:00
..
bpf scx_rustland_core: make sure to use a valid CPU during direct dispatch 2024-06-25 14:11:46 +02:00
bpf.rs compat: Drop __COMPAT_scx_bpf_switch_all() 2024-06-15 20:03:37 -10:00