From: Francis Deslauriers Date: Wed, 11 Dec 2019 22:14:43 +0000 (-0500) Subject: Cleanup: remove redundant memory barrier X-Git-Tag: v2.13.0-rc1~539 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8306baea3da8b1f429e14218b1ef7413ee56ed19;p=lttng-ust.git Cleanup: remove redundant memory barrier This memory barrier is redundant with the one already issued in `rcu_assign_pointer()` function during the `set_tracepoint()` call. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I78decd9ae87a63d7663928ad99e03831155548f7 --- diff --git a/liblttng-ust/lttng-events.c b/liblttng-ust/lttng-events.c index 047759b7..7afee7fc 100644 --- a/liblttng-ust/lttng-events.c +++ b/liblttng-ust/lttng-events.c @@ -600,8 +600,6 @@ int lttng_event_create(const struct lttng_event_desc *desc, goto sessiond_register_error; } - /* Populate lttng_event structure before tracepoint registration. */ - cmm_smp_wmb(); cds_list_add(&event->node, &chan->session->events_head); cds_hlist_add_head(&event->hlist, head); return 0;