]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rcu: Rename struct rcu_data .exp_dynticks_snap into .exp_watching_snap
authorValentin Schneider <vschneid@redhat.com>
Mon, 29 Apr 2024 12:05:29 +0000 (14:05 +0200)
committerNeeraj Upadhyay <neeraj.upadhyay@kernel.org>
Thu, 15 Aug 2024 16:00:42 +0000 (21:30 +0530)
The context_tracking.state RCU_DYNTICKS subvariable has been renamed to
RCU_WATCHING, and the snapshot helpers are now prefix by
"rcu_watching". Reflect that change into the storage variables for these
snapshots.

Signed-off-by: Valentin Schneider <vschneid@redhat.com>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org>
kernel/rcu/tree.h
kernel/rcu/tree_exp.h

index f5361a7d7269c9044221db7a1b37b6be08c093e9..13fdcc2aa081232cd844be255955af28ea1278df 100644 (file)
@@ -215,7 +215,7 @@ struct rcu_data {
        /* 4) rcu_barrier(), OOM callbacks, and expediting. */
        unsigned long barrier_seq_snap; /* Snap of rcu_state.barrier_sequence. */
        struct rcu_head barrier_head;
-       int exp_dynticks_snap;          /* Double-check need for IPI. */
+       int exp_watching_snap;          /* Double-check need for IPI. */
 
        /* 5) Callback offloading. */
 #ifdef CONFIG_RCU_NOCB_CPU
index 48ad8b868d83d00358bb6573ce79bc93bba78ff9..eec42df0c018d23857316955127dd7b60fb7ddce 100644 (file)
@@ -380,7 +380,7 @@ static void __sync_rcu_exp_select_node_cpus(struct rcu_exp_work *rewp)
                        if (rcu_watching_snap_in_eqs(snap))
                                mask_ofl_test |= mask;
                        else
-                               rdp->exp_dynticks_snap = snap;
+                               rdp->exp_watching_snap = snap;
                }
        }
        mask_ofl_ipi = rnp->expmask & ~mask_ofl_test;
@@ -400,7 +400,7 @@ static void __sync_rcu_exp_select_node_cpus(struct rcu_exp_work *rewp)
                unsigned long mask = rdp->grpmask;
 
 retry_ipi:
-               if (rcu_watching_snap_stopped_since(rdp, rdp->exp_dynticks_snap)) {
+               if (rcu_watching_snap_stopped_since(rdp, rdp->exp_watching_snap)) {
                        mask_ofl_test |= mask;
                        continue;
                }