diff options
author | Paul E. McKenney <paul.mckenney@linaro.org> | 2012-03-01 22:18:08 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2012-05-09 23:27:54 +0200 |
commit | b1420f1c8bfc30ecf6380a31d0f686884834b599 (patch) | |
tree | 56eb378bcd64175a7302a1031b388ecf569a30bb /kernel/rcutree_plugin.h | |
parent | rcu: Explicitly initialize RCU_FAST_NO_HZ per-CPU variables (diff) | |
download | linux-b1420f1c8bfc30ecf6380a31d0f686884834b599.tar.xz linux-b1420f1c8bfc30ecf6380a31d0f686884834b599.zip |
rcu: Make rcu_barrier() less disruptive
The rcu_barrier() primitive interrupts each and every CPU, registering
a callback on every CPU. Once all of these callbacks have been invoked,
rcu_barrier() knows that every callback that was registered before
the call to rcu_barrier() has also been invoked.
However, there is no point in registering a callback on a CPU that
currently has no callbacks, most especially if that CPU is in a
deep idle state. This commit therefore makes rcu_barrier() avoid
interrupting CPUs that have no callbacks. Doing this requires reworking
the handling of orphaned callbacks, otherwise callbacks could slip through
rcu_barrier()'s net by being orphaned from a CPU that rcu_barrier() had
not yet interrupted to a CPU that rcu_barrier() had already interrupted.
This reworking was needed anyway to take a first step towards weaning
RCU from the CPU_DYING notifier's use of stop_cpu().
Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcutree_plugin.h')
0 files changed, 0 insertions, 0 deletions