From: Pierre Habouzit Date: Tue, 15 Sep 2009 20:17:22 +0000 (-0400) Subject: qsbr urcu: make it safe to call rcu_sychronize from a registered thread. X-Git-Tag: v0.1~91 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=d1238495fdaf1c85447690231bf5d1838b83bf88;hp=d1238495fdaf1c85447690231bf5d1838b83bf88;p=urcu.git qsbr urcu: make it safe to call rcu_sychronize from a registered thread. Else, since calling rcu_sychronize will increment urcu_gp_ctr, we will be stupidly waiting for ourselves and deadlock. No need to use _rcu_quiescent_state() since we are currently owning the internal URCU lock, so the memory barriers and ACCESS_ONCE() are overkill. Signed-off-by: Pierre Habouzit Signed-off-by: Mathieu Desnoyers ---