From 8a13058c6fb398132fbe05253d1ac55f4cf4cbd1 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 27 Sep 2009 17:26:39 -0400 Subject: [PATCH] Document call_rcu() usage Signed-off-by: Mathieu Desnoyers --- urcu-defer.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/urcu-defer.h b/urcu-defer.h index ac2f53b..e32156c 100644 --- a/urcu-defer.h +++ b/urcu-defer.h @@ -38,6 +38,10 @@ * Each thread queuing memory reclamation must be registered with * rcu_defer_register_thread(). rcu_defer_unregister_thread() should be * called before the thread exits. + * + * *NEVER* use call_rcu()/rcu_defer_queue() within a RCU read-side critical + * section, because this primitive need to call synchronize_rcu() if the thread + * queue is full. */ #define call_rcu rcu_defer_queue -- 2.34.1