summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-05-16 02:47:30 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2018-07-13 01:38:56 +0300
commit3d18469a2bb3988e669d67e097eff42dd40663d4 (patch)
tree3d6de5d07efde17e2c62dfbd313a8c9cf423def8 /include/trace
parentd72193123c81ae6123d108b3be2096f3f13b25a6 (diff)
downloadlinux-3d18469a2bb3988e669d67e097eff42dd40663d4.tar.xz
rcu: Regularize resetting of rcu_data wrap indicator
The rcu_data structure's ->gpwrap indicator is currently reset only when the CPU in question detects a new grace period. This is in theory sufficient because any CPU that has been out of action for long enough that its ->gpwrap indicator is set is guaranteed to see both the end of an old grace period and the start of a new one. However, the current code leaves a short window during which the ->gpwrap indicator has been reset but the corresponding ->gp_seq counter has not yet been brought up to date. This is harmless because interrupts are disabled, but it is likely to (at the very least) cause confusion. This commit therefore moves the resetting of ->gpwrap to follow the updating of ->gp_seq. While in the area, it also resets ->gp_seq_needed. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'include/trace')
0 files changed, 0 insertions, 0 deletions