Files
linux/include/trace/events
Paul E. McKenney 395d775980 rcu: Make rcu_barrier() account for offline no-CBs CPUs
commit 127e29815b upstream.

Currently, rcu_barrier() ignores offline CPUs,  However, it is possible
for an offline no-CBs CPU to have callbacks queued, and rcu_barrier()
must wait for those callbacks.  This commit therefore makes rcu_barrier()
directly invoke the rcu_barrier_func() with interrupts disabled for such
CPUs.  This requires passing the CPU number into this function so that
it can entrain the rcu_barrier() callback onto the correct CPU's callback
list, given that the code must instead execute on the current CPU.

While in the area, this commit fixes a bug where the first CPU's callback
might have been invoked before rcu_segcblist_entrain() returned, which
would also result in an early wakeup.

Fixes: 5d6742b377 ("rcu/nocb: Use rcu_segcblist for no-CBs CPUs")
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
[ paulmck: Apply optimization feedback from Boqun Feng. ]
Cc: <stable@vger.kernel.org> # 5.5.x
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-17 16:12:03 +02:00
..
2020-04-01 11:00:15 +02:00
2018-04-16 11:53:35 +01:00
2019-11-18 17:51:51 +01:00
2019-09-05 20:10:07 +02:00
2019-11-08 11:23:37 +01:00
2019-03-27 15:52:01 -03:00
2017-09-25 20:38:26 +02:00
2019-08-21 00:38:54 +02:00
2019-10-30 16:32:07 -04:00
2018-02-13 21:30:22 +01:00
2017-12-19 10:56:24 +01:00