commit | f677f5d0206401eb1fcdb5506ccd7cc6c1f0c7b8 | [log] [tgz] |
---|---|---|
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Tue Mar 10 14:53:29 2015 -0700 |
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | Wed Mar 11 13:29:07 2015 -0700 |
tree | 806ccc28f7cc1f87cc05e1cac891a3f135c9b555 | |
parent | 6bb3bb50e70dfb4b8d2f1a42bf9972b4b525b7d8 [diff] |
rcu: Correctly initialize ->rcu_qs_ctr_snap at online time The rcu_data structure's ->rcu_qs_ctr_snap field is initialized at CPU-online time from the current CPU's element of the per-CPU rcu_qs_ctr variable. Unfortunately, this is at CPU_UP_PREPARE time, so has nothing to do with the CPU being onlined. This commit therefore initializes this variable from the incoming CPU's element of rcu_qs_ctr. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>