rcu: Fix missing nocb gp wake on rcu_barrier()
authorFrederic Weisbecker <frederic@kernel.org>
Sun, 16 Oct 2022 16:22:53 +0000 (16:22 +0000)
committerPaul E. McKenney <paulmck@kernel.org>
Tue, 18 Oct 2022 22:01:31 +0000 (15:01 -0700)
commitb8f7aca3f0e0e6223094ba2662bac90353674b04
treeeae37c2eb1b7af19bbd2e795601640bd824cf749
parentb50606f35f4b73c8e4c6b9c64fe7ba72ea919134
rcu: Fix missing nocb gp wake on rcu_barrier()

In preparation for RCU lazy changes, wake up the RCU nocb gp thread if
needed after an entrain.  This change prevents the RCU barrier callback
from waiting in the queue for several seconds before the lazy callbacks
in front of it are serviced.

Reported-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/tree.c
kernel/rcu/tree.h
kernel/rcu/tree_nocb.h