Re: [PATCH sched_ext/for-7.3 4/4] sched_ext: Split sub-scheduler implementation into sub.c

From: Tejun Heo

Date: Wed Jul 01 2026 - 13:35:07 EST


Hello, Andrea.

On Wed, Jul 01, 2026 at 12:04:05PM +0200, Andrea Righi wrote:
> clangd isn't happy here, because we're missing the declaration of
> scx_dispatch_sched(). [...] can relax the always inline condition?

My slicing mistake. scx_dispatch_sched() gets promoted into sub.h a few
patches later, and I posted the split ahead of that. I'll fold the promotion
into the split and send v2 soon.

I'd rather keep __always_inline, though. scx_bpf_sub_dispatch() re-enters it
as sub-scheduler dispatch nests, so inlining avoids a frame per nesting level.

Thanks.

--
tejun