提交 a458360a 编写于 作者: P Paul E. McKenney

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: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: NNicholas Piggin <npiggin@gmail.com>
上级 c1935209
......@@ -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 (;;) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册