]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Correctly initialize ->rcu_qs_ctr_snap at online time
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 10 Mar 2015 21:53:29 +0000 (14:53 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 27 May 2015 19:58:38 +0000 (12:58 -0700)
commita738eec6c6082f48cbcf0157fd9f550e286ea04b
treef0f8d12b0ab020b7b9e182bca5c7fedd65f3c2c6
parentcce7f1fc015a98ca9263bd5730c00258bc214e53
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>
kernel/rcu/tree.c