Re: [PATCH 3/6] sched_ext: Return -EBUSY from a pre-init scx_bpf_sub_caps() read
From: Tejun Heo
Date: Thu Nov 12 2026 - 12:48:50 EST
Hello, Tao.
On Thu, Nov 12, 2026 at 09:09:31PM +0800, Tao Cui wrote:
> Return -EBUSY instead: the caller sees a retryable "not ready yet"
> and the comment's expected scenario stays survivable. This mirrors
> how the cid path already handles the same class of pre-init window:
> reads before the tables are published test the table pointer and
> return -EINVAL instead of killing the scheduler.
Why is this useful? ops.init_cids() is documented to run before caps and
shards are finalized, so there's nothing for a scheduler to query or retry
from there.
Thanks.
--
tejun