call_rcu: add back delay in list non-empty case
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Jun 2011 14:50:01 +0000 (10:50 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 9 Jun 2011 14:50:01 +0000 (10:50 -0400)
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 <mathieu.desnoyers@efficios.com>
urcu-call-rcu-impl.h

index 6fcf8c897c9b437acd04b111a8d8beea1c377c8d..bd3126be5c8030df50f59c6f491c58716394c583 100644 (file)
@@ -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);
This page took 0.025235 seconds and 4 git commands to generate.