diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-05-01 22:35:20 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2018-07-13 00:38:45 +0200 |
commit | 598ce09480efb6b48799df60c66bac70bea5ef54 (patch) | |
tree | cb122da628efb837f8299873fcf21cecc9a3b3b1 /kernel/rcu | |
parent | rcu: Convert rcu_grace_period_init tracepoint to gp_seq (diff) | |
download | linux-598ce09480efb6b48799df60c66bac70bea5ef54.tar.xz linux-598ce09480efb6b48799df60c66bac70bea5ef54.zip |
rcu: Convert rcu_preempt_task tracepoint to ->gp_seq
This commit makes the rcu_preempt_task tracepoint use ->gp_seq instead
of ->gpnum.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tree_plugin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/rcu/tree_plugin.h b/kernel/rcu/tree_plugin.h index aca9d187c509..02ca3b4e6a8f 100644 --- a/kernel/rcu/tree_plugin.h +++ b/kernel/rcu/tree_plugin.h @@ -350,8 +350,8 @@ static void rcu_preempt_note_context_switch(bool preempt) trace_rcu_preempt_task(rdp->rsp->name, t->pid, (rnp->qsmask & rdp->grpmask) - ? rnp->gpnum - : rnp->gpnum + 1); + ? rnp->gp_seq + : rcu_seq_snap(&rnp->gp_seq)); rcu_preempt_ctxt_queue(rnp, rdp); } else if (t->rcu_read_lock_nesting < 0 && t->rcu_read_unlock_special.s) { |