qsbr urcu: make it safe to call rcu_sychronize from a registered thread
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 15 Sep 2009 20:39:35 +0000 (16:39 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 15 Sep 2009 20:39:35 +0000 (16:39 -0400)
commitff2f67a0a2168bb1f0114af901e5e8e6ddce076b
tree754b0098fa65db7d032db24099bbef0fdf4bfe2e
parentd1238495fdaf1c85447690231bf5d1838b83bf88
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 <madcoder@debian.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c
This page took 0.025036 seconds and 4 git commands to generate.