Re: [PATCH 08/17] sched_ext: Add scx_bpf_cid_override() kfunc
From: Andrea Righi
Date: Wed Apr 29 2026 - 13:20:55 EST
On Wed, Apr 29, 2026 at 07:06:46AM -1000, Tejun Heo wrote:
> Hello,
>
> I don't think we need to gate it. The override clears scx_cid_topo[]
> to SCX_CID_TOPO_NEG, so subsequent scx_bpf_cid_topo() lookups return
> the well-defined "no topo" sentinel. The scheduler that overrode the
> mapping has already opted out of the auto-probed topology.
Ok, makes sense. At the end if a scheduler overrides the topology and then uses
scx_bpf_cid_topo(), it's probably reasonable to return "no topology".
Thanks,
-Andrea