From: Mathieu Desnoyers Date: Wed, 16 Sep 2009 16:58:58 +0000 (-0400) Subject: rename QSBR force_mb_all_threads to smp_mb X-Git-Tag: v0.1~81 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b6953cd76fe3068c601059879924a6afca76b10f;p=userspace-rcu.git rename QSBR force_mb_all_threads to smp_mb Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-qsbr.c b/urcu-qsbr.c index b387536..4da10d6 100644 --- a/urcu-qsbr.c +++ b/urcu-qsbr.c @@ -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();