From: Mathieu Desnoyers Date: Thu, 9 Jun 2011 14:50:01 +0000 (-0400) Subject: call_rcu: add back delay in list non-empty case X-Git-Tag: v0.6.0~24 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=ccbac24d332cd81315a63229a053ad1813a193f0;p=userspace-rcu.git call_rcu: add back delay in list non-empty case commit bc94ca9bada25f7403e3e859caa241146ae8e338 changed the !RT behavior slightly: when the list is not empty, it does not wait for a delay anymore. Add this delay back, to ensure we don't flood the system with frequent synchronize_rcu() calls, which would slow down readers. Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index 6fcf8c8..bd3126b 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -253,6 +253,8 @@ static void *call_rcu_thread(void *arg) * call_rcu list. */ cmm_smp_mb(); + } else { + poll(NULL, 0, 10); } } else { poll(NULL, 0, 10);