rculfhash: spawn only number of threads required for resize
[urcu.git] / urcu-call-rcu-impl.h
index 38cc00190f018cf1afd7fac07e42bcedec484af3..700d1289192a31a5f2693cf79e4efd99be993220 100644 (file)
@@ -383,7 +383,7 @@ struct call_rcu_data *create_call_rcu_data(unsigned long flags,
 
 int set_cpu_call_rcu_data(int cpu, struct call_rcu_data *crdp)
 {
-       int warned = 0;
+       static int warned = 0;
 
        call_rcu_lock(&call_rcu_mutex);
        if (cpu < 0 || maxcpus <= cpu) {
@@ -482,7 +482,9 @@ void set_thread_call_rcu_data(struct call_rcu_data *crdp)
 /*
  * Create a separate call_rcu thread for each CPU.  This does not
  * replace a pre-existing call_rcu thread -- use the set_cpu_call_rcu_data()
- * function if you want that behavior.
+ * function if you want that behavior. Should be paired with
+ * free_all_cpu_call_rcu_data() to teardown these call_rcu worker
+ * threads.
  */
 
 int create_all_cpu_call_rcu_data(unsigned long flags)
This page took 0.024622 seconds and 4 git commands to generate.