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>
{
struct reader_registry *index;
+ if (rcu_reader_qs_gp & 1)
+ rcu_reader_qs_gp = urcu_gp_ctr + 1;
+
if (!registry)
return;
/*