}
static unsigned long rcu_exp_gp_seq_snap(struct rcu_state *rsp)
{
+ unsigned long s;
+
smp_mb(); /* Caller's modifications seen first by other CPUs. */
- return rcu_seq_snap(&rsp->expedited_sequence);
+ s = rcu_seq_snap(&rsp->expedited_sequence);
+ trace_rcu_exp_grace_period(rsp->name, s, TPS("snap"));
+ return s;
}
static bool rcu_exp_gp_seq_done(struct rcu_state *rsp, unsigned long s)
{
/* Take a snapshot of the sequence number. */
s = rcu_exp_gp_seq_snap(rsp);
- trace_rcu_exp_grace_period(rsp->name, s, TPS("snap"));
-
if (exp_funnel_lock(rsp, s))
return; /* Someone else did our work for us. */
}
s = rcu_exp_gp_seq_snap(rsp);
- trace_rcu_exp_grace_period(rsp->name, s, TPS("snap"));
-
if (exp_funnel_lock(rsp, s))
return; /* Someone else did our work for us. */