diff options
author | Paul E. McKenney <[email protected]> | 2017-04-28 16:19:07 -0700 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2017-06-08 08:25:39 -0700 |
commit | 68ab0b4263224157f4d0c0e42854169a183d7534 (patch) | |
tree | 5c7d1ec59c1561162bcac35df50a7c34701cd4a2 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | a602538e46c9c62e75f1f0be9806495c79bcda9f (diff) |
rcu: Make synchronize_rcu_mult() check for duplicates
Currently, doing synchronize_rcu_mult(call_rcu, call_rcu) might
(or might not) wait for two RCU grace periods. One approach is
of course "don't do that!", but in CONFIG_PREEMPT=n kernels,
synchronize_rcu_mult(call_rcu, call_rcu_sched) does exactly that.
This results in an ugly #ifdef in sched_cpu_deactivate().
This commit therefore makes __wait_rcu_gp() check for duplicates,
which in turn allows duplicates to be passed to synchronize_rcu_mult()
without risk of waiting twice on the same type of grace period.
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions