diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-04-11 00:40:35 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-06-08 17:25:22 +0200 |
commit | f92c734f02cbf10e40569facff82059ae9b61920 (patch) | |
tree | 95d64d71c63d840d31bef62793ce8262305a6f1e /include/trace/events/power.h | |
parent | rcutorture: Add a scenario for Classic SRCU (diff) | |
download | linux-f92c734f02cbf10e40569facff82059ae9b61920.tar.xz linux-f92c734f02cbf10e40569facff82059ae9b61920.zip |
rcu: Prevent rcu_barrier() from starting needless grace periods
Currently rcu_barrier() uses call_rcu() to enqueue new callbacks
on each CPU with a non-empty callback list. This works, but means
that rcu_barrier() forces grace periods that are not otherwise needed.
The key point is that rcu_barrier() never needs to wait for a grace
period, but instead only for all pre-existing callbacks to be invoked.
This means that rcu_barrier()'s new callbacks should be placed in
the callback-list segment containing the last pre-existing callback.
This commit makes this change using the new rcu_segcblist_entrain()
function.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/trace/events/power.h')
0 files changed, 0 insertions, 0 deletions