X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=urcu-call-rcu-impl.h;h=d5b75c076de22de777244cc26fb86f0791f898a5;hb=d7ff6cee89d7f8b4183b783d3d0a337b27d10bd2;hp=3e947af2fd84bfd6c6843788d9f31a5ff720b876;hpb=698d07788379df492ad55767bdb84bc24d93c20f;p=userspace-rcu.git diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index 3e947af..d5b75c0 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -619,7 +619,10 @@ void call_rcu_data_free(struct call_rcu_data *crdp) wake_call_rcu_thread(default_call_rcu_data); } + call_rcu_lock(&call_rcu_mutex); cds_list_del(&crdp->list); + call_rcu_unlock(&call_rcu_mutex); + free(crdp); }