X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-call-rcu-impl.h;h=d964c474156473c43b6bbff4f69abf5d06355e57;hp=d5b75c076de22de777244cc26fb86f0791f898a5;hb=ad1b99096a48d7cbeb07991f0a4015bbbd82645d;hpb=2ef1bfb2cb9abb657e077814e272801e197a3c47 diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h index d5b75c0..d964c47 100644 --- a/urcu-call-rcu-impl.h +++ b/urcu-call-rcu-impl.h @@ -677,6 +677,10 @@ void call_rcu_after_fork_child(void) /* Release the mutex. */ call_rcu_unlock(&call_rcu_mutex); + /* Do nothing when call_rcu() has not been used */ + if (cds_list_empty(&call_rcu_data_list)) + return; + /* * Allocate a new default call_rcu_data structure in order * to get a working call_rcu thread to go with it.