diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-04-28 06:25:01 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-12 23:27:52 +0200 |
commit | ba04107fc901ddce49686944f7e038b4f0b0a359 (patch) | |
tree | 35fc87701d5663661ee4f31558cfcfc40b4f59ac /kernel/rcu | |
parent | rcu: Move rcu_nocb_gp_get() to ->gp_seq (diff) | |
download | linux-ba04107fc901ddce49686944f7e038b4f0b0a359.tar.xz linux-ba04107fc901ddce49686944f7e038b4f0b0a359.zip |
rcu: Move rcu_gp_in_progress() to ->gp_seq
This commit makes rcu_gp_in_progress() use ->gp_seq instead of
->completed and ->gpnum. The READ_ONCE() invocations are buried
in rcu_seq_current().
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c index b3af3d24286c..56445f4c09a8 100644 --- a/kernel/rcu/tree.c +++ b/kernel/rcu/tree.c @@ -219,7 +219,7 @@ unsigned long rcu_rnp_online_cpus(struct rcu_node *rnp) */ static int rcu_gp_in_progress(struct rcu_state *rsp) { - return READ_ONCE(rsp->completed) != READ_ONCE(rsp->gpnum); + return rcu_seq_state(rcu_seq_current(&rsp->gp_seq)); } /* |