rename QSBR force_mb_all_threads to smp_mb
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 16 Sep 2009 16:58:58 +0000 (12:58 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 16 Sep 2009 16:58:58 +0000 (12:58 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
urcu-qsbr.c

index b387536adc6ef923d8254934b41955389002f0fc..4da10d6121e3d6518315e601c40ced1ec284875b 100644 (file)
@@ -106,11 +106,6 @@ static void force_mb_single_thread(struct reader_registry *index)
 }
 #endif /* #ifdef HAS_INCOHERENT_CACHES */
 
-static void force_mb_all_threads(void)
-{
-       smp_mb();
-}
-
 static void wait_for_quiescent_state(void)
 {
        struct reader_registry *index;
@@ -156,12 +151,12 @@ void synchronize_rcu(void)
        if (was_online)
                _rcu_thread_offline();
 
-       force_mb_all_threads();
+       smp_mb();
        internal_urcu_lock();
        STORE_SHARED(urcu_gp_ctr, urcu_gp_ctr + 2);
        wait_for_quiescent_state();
        internal_urcu_unlock();
-       force_mb_all_threads();
+       smp_mb();
 
        if (was_online)
                _rcu_thread_online();
This page took 0.02627 seconds and 4 git commands to generate.