From: Mathieu Desnoyers Date: Tue, 15 Sep 2009 20:39:35 +0000 (-0400) Subject: qsbr urcu: make it safe to call rcu_sychronize from a registered thread X-Git-Tag: v0.1~90 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=ff2f67a0a2168bb1f0114af901e5e8e6ddce076b;hp=ff2f67a0a2168bb1f0114af901e5e8e6ddce076b;p=userspace-rcu.git qsbr urcu: make it safe to call rcu_sychronize from a registered thread Actually, the proper way to deal with threads registered as readers but also calling synchronize_rcu() is to mark them as offline while the synchronize is in progress. Else, since calling rcu_sychronize will increment urcu_gp_ctr, we will be stupidly waiting for ourselves and deadlock. Original-patch-from: Pierre Habouzit Signed-off-by: Mathieu Desnoyers ---