Pair all_cpu call_rcu create with free
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Sep 2011 06:45:59 +0000 (23:45 -0700)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 11 Sep 2011 06:45:59 +0000 (23:45 -0700)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_lfq.c
tests/test_urcu_lfs.c
urcu-call-rcu-impl.h

index 2d701f2913a7244b36a24b2e493d515d05377847..5292ebd4c4f35e673b7e52588cc526c326fcb6be 100644 (file)
@@ -450,6 +450,7 @@ int main(int argc, char **argv)
                       tot_successful_enqueues,
                       tot_successful_dequeues + end_dequeues);
 
+       free_all_cpu_call_rcu_data();
        free(count_enqueuer);
        free(count_dequeuer);
        free(tid_enqueuer);
index e02fa58b49f4e24acb910628ca31e1025352771b..c85fa447c37afd7eb48da32f1c10811e57fd9d85 100644 (file)
@@ -446,6 +446,7 @@ int main(int argc, char **argv)
                       tot_successful_enqueues,
                       tot_successful_dequeues + end_dequeues);
 
+       free_all_cpu_call_rcu_data();
        free(count_enqueuer);
        free(count_dequeuer);
        free(tid_enqueuer);
index 38cc00190f018cf1afd7fac07e42bcedec484af3..c14cc18bde825c6c3cfec1557222e764c88f85a9 100644 (file)
@@ -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.02829 seconds and 4 git commands to generate.