Re: [tip:perf/core] perf: Per-pmu-per-cpu contexts

Peter Zijlstra
2010-09-10T15:47:14Z

On Fri, 2010-09-10 at 08:37 -0700, Paul E. McKenney wrote:
> > So, you say below that it works because synchronize_srcu(), that
> > waits for qs after touching pmus, implies synchronize_sched(), right?
>
> Ook... My current plans to fold SRCU into TREE_RCU would invalidate
> this assumption.
>
> Maybe we need some sort of primitive that concurrently waits for
> multiple types of RCU grace periods?

Nah, but I was thinking that any kind of preemptible rcu sync would
imply a sched rcu sync.

If not strictly implied I'd have no problem simply writing:

synchronize_rcu_sched();
synchronize_srcu();