diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-04 21:21:41 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-11-04 04:20:03 +0100 |
commit | 11bbb235c26f93b7c69e441452e44adbf6ed6996 (patch) | |
tree | fbb0889e0a86daf78272f16487a7682fe9cc0117 /kernel/rcu/tiny.c | |
parent | rcu: Remove rcu_dynticks * parameters when they are always this_cpu_ptr(&rcu_... (diff) | |
download | linux-11bbb235c26f93b7c69e441452e44adbf6ed6996.tar.xz linux-11bbb235c26f93b7c69e441452e44adbf6ed6996.zip |
rcu: Use DEFINE_PER_CPU_SHARED_ALIGNED for rcu_data
The rcu_data per-CPU variable has a number of fields that are atomically
manipulated, potentially by any CPU. This situation can result in false
sharing with per-CPU variables that have the misfortune of being allocated
adjacent to rcu_data in memory. This commit therefore changes the
DEFINE_PER_CPU() to DEFINE_PER_CPU_SHARED_ALIGNED() in order to avoid
this false sharing.
Reported-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Diffstat (limited to 'kernel/rcu/tiny.c')
0 files changed, 0 insertions, 0 deletions