Re: [RFC PATCHSET sched_ext/for-7.4-fixes] sched_ext: sub: Don't run ops.sub_caps_updated() in an SCX op context

From: Tejun Heo

Date: Mon Nov 30 2026 - 09:39:10 EST


Hello, Kuba.

On Mon, Nov 30, 2026 at 12:53:26PM +0000, Kuba Piecuch wrote:
...
> I'll drop this RFC and send a doc patch clarifying @sub_caps_updated
> (may run synchronously in the caller's locking context as well as
> unlocked, intended only for tracking caps and propagating
> grants/revokes, with cap-acting operations like scx_bpf_cidperf_set()
> belonging in ops.sub_ecaps_updated()). Let me know if you'd also want
> scx_kfunc_context_filter() to reject rq-lock-sensitive kfuncs from
> ops.sub_caps_updated() at load time, or if updating the doc comment is
> enough.

Oh yeah, if we can reject them, that'd be better.

Thanks.

--
tejun