Re: [PATCH rcu 6/5] Make RCU watch ct_kernel_exit_state() warning

2025-02-06 Thread Boqun Feng
On Thu, Feb 06, 2025 at 02:15:09AM -0800, Paul E. McKenney wrote: > The WARN_ON_ONCE() in ct_kernel_exit_state() follows the call to > ct_state_inc(), which means that RCU is not watching this WARN_ON_ONCE(). > This can (and does) result in extraneous lockdep warnings when this > WARN_ON_ONCE() tri

[PATCH rcu 6/5] Make RCU watch ct_kernel_exit_state() warning

2025-02-06 Thread Paul E. McKenney
The WARN_ON_ONCE() in ct_kernel_exit_state() follows the call to ct_state_inc(), which means that RCU is not watching this WARN_ON_ONCE(). This can (and does) result in extraneous lockdep warnings when this WARN_ON_ONCE() triggers. These extraneous warnings are the opposite of helpful. Therefore,