rcu: Remove rsp parameter from note_gp_changes()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 4 Jul 2018 00:22:34 +0000 (17:22 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 30 Aug 2018 23:03:02 +0000 (16:03 -0700)
There now is only one rcu_state structure in a given build of the
Linux kernel, so there is no need to pass it as a parameter to RCU's
functions.  This commit therefore removes the rsp parameter from
note_gp_changes().

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c
kernel/rcu/tree_plugin.h

index 3e1ec264a653fcc73486bf7e011baa389a34b18b..9189f7c70df5f9074863b44c1755725d5784635e 100644 (file)
@@ -1801,7 +1801,7 @@ static bool __note_gp_changes(struct rcu_node *rnp, struct rcu_data *rdp)
        return ret;
 }
 
-static void note_gp_changes(struct rcu_state *rsp, struct rcu_data *rdp)
+static void note_gp_changes(struct rcu_data *rdp)
 {
        unsigned long flags;
        bool needwake;
@@ -2375,7 +2375,7 @@ static void
 rcu_check_quiescent_state(struct rcu_state *rsp, struct rcu_data *rdp)
 {
        /* Check for grace-period ends and beginnings. */
-       note_gp_changes(rsp, rdp);
+       note_gp_changes(rdp);
 
        /*
         * Does this CPU still need to do its part for current grace period?
@@ -2840,7 +2840,7 @@ static void __call_rcu_core(struct rcu_state *rsp, struct rcu_data *rdp,
                     rdp->qlen_last_fqs_check + qhimark)) {
 
                /* Are we ignoring a completed grace period? */
-               note_gp_changes(rsp, rdp);
+               note_gp_changes(rdp);
 
                /* Start a new grace period if one not already started. */
                if (!rcu_gp_in_progress()) {
index 0c59c3987c60c0ea03ea6ed9a6af9670b3661fc3..82f10a6bf266e7436df0164ddc8b01c409d09956 100644 (file)
@@ -1586,7 +1586,7 @@ static bool __maybe_unused rcu_try_advance_all_cbs(void)
                                          rcu_seq_current(&rnp->gp_seq)) ||
                     unlikely(READ_ONCE(rdp->gpwrap))) &&
                    rcu_segcblist_pend_cbs(&rdp->cblist))
-                       note_gp_changes(rsp, rdp);
+                       note_gp_changes(rdp);
 
                if (rcu_segcblist_ready_cbs(&rdp->cblist))
                        cbs_ready = true;