rcu: Fix cpustart tracepoint gp_seq number
authorJoel Fernandes (Google) <joel@joelfernandes.org>
Mon, 14 May 2018 03:15:41 +0000 (20:15 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:38:53 +0000 (15:38 -0700)
commit5ca0905f6787e930bc2a626cf1d8f69fab52acef
tree5bcacd1ddb00b2596b86905b4f2b764ae0a7d8db
parent5b55072f22ba2ed136b7a1b6c5beea9ace8415a7
rcu: Fix cpustart tracepoint gp_seq number

The "cpustart" trace event shows a stale gp_seq. This is because it uses
rdp->gp_seq, which is updated only at the end of the __note_gp_changes()
function. This commit therefore instead uses rnp->gp_seq.

An alternative fix would be to update rdp->gp_seq earlier, but this would
break RCU's detection of the beginning of a new-to-this-CPU grace period.

Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/tree.c