Re: [PATCH 2/2] sched_ext: Take rcu_read_lock() explicitly in sub-cap kfuncs
From: Kuba Piecuch
Date: Tue Nov 24 2026 - 05:29:32 EST
Hi Andrea,
On Tue, 24 Nov 2026 08:02, Andrea Righi wrote:
> I'd drop this patch. The IRQ-disabled region already provides the
> required lifetime protection and the existing checks recognize it.
>
> If a future change introduces another dereference here, it should use
> the check appropriate to that protection, such as rcu_dereference_all().
>
> I think we don't want to introduce additional RCU read-side bookkeeping
> on every call to accommodate that possibility.
Makes sense, especially with patch 1 switching to rcu_dereference_all()
as well. Will drop this patch in v2.
Thanks,
Kuba