rcu: Rename rcu_dynticks_in_eqs_since() into rcu_watching_snap_stopped_since()
authorValentin Schneider <vschneid@redhat.com>
Tue, 16 Apr 2024 15:21:25 +0000 (17:21 +0200)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Thu, 15 Aug 2024 16:00:42 +0000 (21:30 +0530)
commit3116a32eb40464de61828787c21f0629a1c26cfa
tree5b41f450632f7b5e29f30b703ddff5df2b9349d9
parent9629936d06d05540d4dc83cee1167422a477a818
rcu: Rename rcu_dynticks_in_eqs_since() into rcu_watching_snap_stopped_since()

The context_tracking.state RCU_DYNTICKS subvariable has been renamed to
RCU_WATCHING, the dynticks prefix can go.

While at it, this helper is only meant to be called after failing an
earlier call to rcu_watching_snap_in_eqs(), document this in the comments
and add a WARN_ON_ONCE() for good measure.

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
Documentation/RCU/Design/Memory-Ordering/Tree-RCU-Memory-Ordering.rst
kernel/rcu/tree.c
kernel/rcu/tree_exp.h