rcuja: use rcu_barrier in destroy
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 15:45:15 +0000 (11:45 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 15:45:15 +0000 (11:45 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
rcuja/rcuja.c

index 8f62550f76fc0b23874fc70ce83cf967f9df4fb2..0f07b15436e8b51b1591601fd4568ffb9dfa0c7e 100644 (file)
@@ -2435,8 +2435,10 @@ int cds_ja_destroy(struct cds_ja *ja,
        ret = rcuja_delete_ht(ja->ht);
        if (ret)
                return ret;
-       fprintf(stderr, "Waiting arbitrary time for node free accounting...\n");
-       sleep(10);      //wait for free TEST XXX
+
+       /* Wait for in-flight call_rcu free to complete. */
+       flavor->barrier();
+
        flavor->thread_online();
        if (uatomic_read(&ja->nr_fallback))
                fprintf(stderr,
This page took 0.026554 seconds and 4 git commands to generate.