From: Mathieu Desnoyers Date: Fri, 31 May 2013 15:45:15 +0000 (-0400) Subject: rcuja: use rcu_barrier in destroy X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=f2ae7af7650493a88d99cb7d1400a7a025960124;p=userspace-rcu.git rcuja: use rcu_barrier in destroy Signed-off-by: Mathieu Desnoyers --- diff --git a/rcuja/rcuja.c b/rcuja/rcuja.c index 8f62550..0f07b15 100644 --- a/rcuja/rcuja.c +++ b/rcuja/rcuja.c @@ -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,