summaryrefslogtreecommitdiff
path: root/kernel/rcu
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-04-19 15:59:55 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-05-15 10:31:04 -0700
commita458360af63a36424c9f607015f0858aacb84a19 (patch)
tree315a0afe847e4fa210db1b9f9c5971286aeddcaa /kernel/rcu
parentc1935209df8c903fc3a33143223338826fa54bd1 (diff)
rcu: Drop early GP request check from rcu_gp_kthread()
Now that grace-period requests use funnel locking and now that they set ->gp_flags to RCU_GP_FLAG_INIT even when the RCU grace-period kthread has not yet started, rcu_gp_kthread() no longer needs to check need_any_future_gp() at startup time. This commit therefore removes this check. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Tested-by: Nicholas Piggin <npiggin@gmail.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r--kernel/rcu/tree.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/kernel/rcu/tree.c b/kernel/rcu/tree.c
index 020a0fe2dbee..ed238886e6ca 100644
--- a/kernel/rcu/tree.c
+++ b/kernel/rcu/tree.c
@@ -2135,12 +2135,6 @@ static int __noreturn rcu_gp_kthread(void *arg)
struct rcu_state *rsp = arg;
struct rcu_node *rnp = rcu_get_root(rsp);
- /* Check for early-boot work. */
- raw_spin_lock_irq_rcu_node(rnp);
- if (need_any_future_gp(rnp))
- WRITE_ONCE(rsp->gp_flags, RCU_GP_FLAG_INIT);
- raw_spin_unlock_irq_rcu_node(rnp);
-
rcu_bind_gp_kthread();
for (;;) {