qsbr urcu: make it safe to call rcu_sychronize from a registered thread.
authorPierre Habouzit <madcoder@debian.org>
Tue, 15 Sep 2009 20:17:22 +0000 (16:17 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 15 Sep 2009 20:17:22 +0000 (16:17 -0400)
commitd1238495fdaf1c85447690231bf5d1838b83bf88
tree592dbf5e1bce9fd81906013722d5fcf33d0e9266
parent90c1618acef5a848409867e9ff2dab7c8b859457
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 <madcoder@debian.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c
This page took 0.025927 seconds and 4 git commands to generate.