From: Mathieu Desnoyers Date: Tue, 2 Mar 2010 16:36:49 +0000 (-0500) Subject: urcu-defer: remove "ratelimit" leftover X-Git-Tag: v0.4.2~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=62f719617cf878704b4f855e7a739ce634146654;p=urcu.git urcu-defer: remove "ratelimit" leftover Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-defer.c b/urcu-defer.c index 696ccae..92635ed 100644 --- a/urcu-defer.c +++ b/urcu-defer.c @@ -247,7 +247,7 @@ void _defer_rcu(void (*fct)(void *p), void *p) * If queue is full, or reached threshold. Empty queue ourself. * Worse-case: must allow 2 supplementary entries for fct pointer. */ - if (unlikely(sync || (head - tail >= DEFER_QUEUE_SIZE - 2))) { + if (unlikely(head - tail >= DEFER_QUEUE_SIZE - 2)) { assert(head - tail <= DEFER_QUEUE_SIZE); rcu_defer_barrier_thread(); assert(head - LOAD_SHARED(defer_queue.tail) == 0);