Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
* [lttng-dev] Question about lock in synchronize_rcu implementation of URCU
@ 2016-04-28  1:34 Yuxin Ren
  2016-04-28  2:08 ` Paul E. McKenney
  0 siblings, 1 reply; 11+ messages in thread
From: Yuxin Ren @ 2016-04-28  1:34 UTC (permalink / raw)


Hi,

I am learning the URCU code.

Why do we need rcu_gp_lock in synchronize_rcu?
https://github.com/urcu/userspace-rcu/blob/master/urcu.c#L401

In the comment, it says this lock ensures mutual exclusion between
threads calling synchronize_rcu().
But only the first thread added to waiter queue can proceed to detect
grace period.
How can multiple threads currently perform the grace thread?

Thanks a lot!
Yuxin


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-04-28 16:08 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-28  1:34 [lttng-dev] Question about lock in synchronize_rcu implementation of URCU Yuxin Ren
2016-04-28  2:08 ` Paul E. McKenney
2016-04-28  2:18   ` Yuxin Ren
2016-04-28  4:23     ` Paul E. McKenney
2016-04-28 12:44       ` Boqun Feng
2016-04-28 13:47         ` Yuxin Ren
2016-04-28 13:55           ` Paul E. McKenney
2016-04-28 14:38           ` Mathieu Desnoyers
2016-04-28 14:57             ` Paul E. McKenney
2016-04-28 16:08           ` Mathieu Desnoyers
2016-04-28 13:53         ` Paul E. McKenney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox