[ltt-dev] [rp] [PATCH urcu 4/4] Provide cleanup interfaces for per-CPU and per-thread call_rcu threads

Paolo Bonzini pbonzini at redhat.com
Wed Mar 9 11:40:30 EST 2011


On 03/09/2011 02:02 PM, Mathieu Desnoyers wrote:
>    void call_rcu_before_fork_parent(void)
>      pthread_mutex_lock(&call_rcu_mutex);
>
>    void call_rcu_after_fork_parent(void)
>      pthread_mutex_unlock(&call_rcu_mutex);
>
>    void call_rcu_after_fork_child(void)
>      allocate new default call_rcu_data
>      dispose of old structures
>      pthread_mutex_unlock(&call_rcu_mutex);

These are just the three arguments to pthread_atfork, so they could be 
replaced by a single call_rcu_init_atfork that calls pthread_atfork.

Paolo




More information about the lttng-dev mailing list