Cleanup: remove redundant memory barrier
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 11 Dec 2019 22:14:43 +0000 (17:14 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 13 Feb 2020 17:12:53 +0000 (12:12 -0500)
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 <francis.deslauriers@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I78decd9ae87a63d7663928ad99e03831155548f7

liblttng-ust/lttng-events.c

index 047759b796a8a91ddac3f83a46148273ff829581..7afee7fc4043ac58a1be6a46df6852a93e10882c 100644 (file)
@@ -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;
This page took 0.025645 seconds and 4 git commands to generate.