[ltt-dev] [PATCH 1/7] urcu, call_rcu: protects call_rcu_data_list when remove node

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Thu Sep 29 13:00:52 EDT 2011


* Lai Jiangshan (laijs at cn.fujitsu.com) wrote:
> Signed-off-by: Lai Jiangshan <laijs at cn.fujitsu.com>

Merged, thanks!

Mathieu

> ---
>  urcu-call-rcu-impl.h |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/urcu-call-rcu-impl.h b/urcu-call-rcu-impl.h
> index f9250e8..87d9157 100644
> --- a/urcu-call-rcu-impl.h
> +++ b/urcu-call-rcu-impl.h
> @@ -617,7 +617,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);
>  }
>  
> -- 
> 1.7.4.4
> 

-- 
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com




More information about the lttng-dev mailing list