Re: [RFC PATCH 47/86] rcu: select PREEMPT_RCU if PREEMPT

From: Steven Rostedt
Date: Tue Nov 07 2023 - 19:29:22 EST


On Tue, 7 Nov 2023 13:57:33 -0800
Ankur Arora <ankur.a.arora@xxxxxxxxxx> wrote:

> With PREEMPTION being always-on, some configurations might prefer
> the stronger forward-progress guarantees provided by PREEMPT_RCU=n
> as compared to PREEMPT_RCU=y.
>
> So, select PREEMPT_RCU=n for PREEMPT_VOLUNTARY and PREEMPT_NONE and
> enabling PREEMPT_RCU=y for PREEMPT or PREEMPT_RT.
>
> Note that the preemption model can be changed at runtime (modulo
> configurations with ARCH_NO_PREEMPT), but the RCU configuration
> is statically compiled.

I wonder if we should make this a separate patch, and allow PREEMPT_RCU=n
when PREEMPT=y?

This could allow us to test this without this having to be part of this
series.

-- Steve