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

From: Peter Zijlstra
Date: Fri Sep 10 2010 - 11:47:20 EST


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();


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/