Re: [PATCH v2] rcu/nocb: Add Safe checks for access offloaded rdp
From: Frederic Weisbecker
Date: Fri May 09 2025 - 09:34:07 EST
Le Thu, May 08, 2025 at 02:43:11PM +0800, Z qiang a écrit :
> On Thu, May 8, 2025 at 12:25 AM Frederic Weisbecker <frederic@xxxxxxxxxx> wrote:
> > On a second thought, isn't "rdp == this_cpu_ptr(&rcu_data)" enough?
>
> If the CONFIG_DEBUG_PREEMPT=y, the following code will cause
> a warning in rcuop kthreads:
>
> WARN_ON_ONCE(!rcu_rdp_is_offloaded(rdp))
I keep forgetting that, indeed!
Looks good then, thanks.
Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>
--
Frederic Weisbecker
SUSE Labs