qsbr rcu: rc_register_thread also make the thread online.
authorPierre Habouzit <madcoder@debian.org>
Tue, 15 Sep 2009 18:09:59 +0000 (14:09 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Tue, 15 Sep 2009 18:09:59 +0000 (14:09 -0400)
Else, all its RCU reader critical sections aren't safe until its first
_rcu_quiescent_state() call.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c

index 87c83d7fc154443dcee6329cb75abe2a97c33f8e..878a550b9291d21a464f5e4c1db9e58f1d741ea3 100644 (file)
@@ -251,6 +251,7 @@ static void rcu_remove_reader(pthread_t id)
 
 void rcu_register_thread(void)
 {
+       _rcu_thread_online();
        internal_urcu_lock();
        rcu_add_reader(pthread_self());
        internal_urcu_unlock();
This page took 0.025512 seconds and 4 git commands to generate.