From ccbac24d332cd81315a63229a053ad1813a193f0 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 9 Jun 2011 10:50:01 -0400 Subject: [PATCH] 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 --- urcu-call-rcu-impl.h | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.34.1