]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rcu: Rename rcu_implicit_dynticks_qs() into rcu_watching_snap_recheck()
authorValentin Schneider <vschneid@redhat.com>
Mon, 29 Apr 2024 14:41:37 +0000 (16:41 +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, drop the dyntick reference and update the name of this helper
to express that it rechecks rdp->watching_snap after an earlier
rcu_watching_snap_save().

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/TreeRCU-dyntick.svg
Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp-fqs.svg
Documentation/RCU/Design/Memory-Ordering/TreeRCU-gp.svg
Documentation/RCU/Design/Memory-Ordering/TreeRCU-hotplug.svg
kernel/rcu/tree.c

index 13956baf748adf2bc04db1edc8480a7bbccc57cf..ab9707f04e666351dde8bba331a006e15228ba0e 100644 (file)
        font-style="normal"
        y="-8368.1475"
        x="2463.3262"
-       xml:space="preserve">rcu_implicit_dynticks_qs()</text>
+       xml:space="preserve">rcu_watching_snap_recheck()</text>
   </g>
   <g
      id="g4504"
index 9de55fbf5be490d6d32780ce73c474b85a7931ae..e17c3356041aa2d7ac88164c4bca85c12b6f410f 100644 (file)
      font-style="normal"
      y="1858.8729"
      x="4414.1836"
-     xml:space="preserve">rcu_implicit_dynticks_qs()</text>
+     xml:space="preserve">rcu_watching_snap_recheck()</text>
   <text
      xml:space="preserve"
      x="14659.87"
index 286a098b9c42faa56b241dd30b86a125c87b627f..c43e1ec10774b3f7a631eaf87ec6a1e547ad8e4d 100644 (file)
        font-style="normal"
        y="38425.035"
        x="-337.79462"
-       xml:space="preserve">rcu_implicit_dynticks_qs()</text>
+       xml:space="preserve">rcu_watching_snap_recheck()</text>
     <text
        xml:space="preserve"
        x="9907.8887"
index bab69a15c9c22d139a81aaa437758c58c55e1477..a92356ce40110e9cd39d8ac2587f0687511847d6 100644 (file)
        font-style="normal"
        y="-8368.1475"
        x="2463.3262"
-       xml:space="preserve">rcu_implicit_dynticks_qs()</text>
+       xml:space="preserve">rcu_watching_snap_recheck()</text>
     <text
        sodipodi:linespacing="125%"
        style="font-size:192px;font-style:normal;font-weight:bold;line-height:125%;text-anchor:start;fill:#000000;stroke-width:0.025in;font-family:Courier"
index 93039414733a40961b6287d4d9ac9f7e4c1c8230..b53b354417aeb33a8f8c544d0b99a7182f431ea1 100644 (file)
@@ -812,7 +812,7 @@ static int rcu_watching_snap_save(struct rcu_data *rdp)
  *
  * Returns zero otherwise.
  */
-static int rcu_implicit_dynticks_qs(struct rcu_data *rdp)
+static int rcu_watching_snap_recheck(struct rcu_data *rdp)
 {
        unsigned long jtsq;
        int ret = 0;
@@ -1998,7 +1998,7 @@ static void rcu_gp_fqs(bool first_time)
                force_qs_rnp(rcu_watching_snap_save);
        } else {
                /* Handle dyntick-idle and offline CPUs. */
-               force_qs_rnp(rcu_implicit_dynticks_qs);
+               force_qs_rnp(rcu_watching_snap_recheck);
        }
        /* Clear flag to prevent immediate re-entry. */
        if (READ_ONCE(rcu_state.gp_flags) & RCU_GP_FLAG_FQS) {