X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=libust%2Ftracer.c;h=6f192130df269e7820df085bed8cc464684c56d9;hb=97b042a3085a90b776471390a79a4e9dc02b75e9;hp=bb8c7697f38d8c9b4bb7f31a9936b41a0790e01a;hpb=772030fed323e388da467735cf4b5e8781acb710;p=lttng-ust.git diff --git a/libust/tracer.c b/libust/tracer.c index bb8c7697..6f192130 100644 --- a/libust/tracer.c +++ b/libust/tracer.c @@ -807,7 +807,7 @@ traces_error: //ust// } /* Must be called while sure that trace is in the list. */ -static int _ltt_trace_destroy(struct ltt_trace_struct *trace) +static int _ltt_trace_destroy(struct ltt_trace_struct *trace) { int err = -EPERM; @@ -823,8 +823,8 @@ static int _ltt_trace_destroy(struct ltt_trace_struct *trace) goto active_error; } /* Everything went fine */ -//ust// list_del_rcu(&trace->list); -//ust// synchronize_sched(); + list_del_rcu(&trace->list); + synchronize_rcu(); if (list_empty(<t_traces.head)) { //ust// clear_kernel_trace_flag_all_tasks(); /*