With sched_ext there is support for BPF-based CPU scheduling policies for the Linux kernel while now a new initiative is working on BPF-based I/O schedulers.