Fix: notifier: use store-release/load-acquire for error counter
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 27 Nov 2020 21:03:55 +0000 (16:03 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 27 Nov 2020 21:03:55 +0000 (16:03 -0500)
commitab04d7b1e3708b0da0771d054e97e76d3e0f7182
treec0b0ed0c558857c7313ad9fabc70148efc533038
parenta83d68311879e618ea79a0f2a9f3e53e05855c7e
Fix: notifier: use store-release/load-acquire for error counter

The "record_error" operation is executed concurrently with setting the
error counter in the notifier group without locking, so we need to
explicitly provide existance guarantees.

The only visible transition is from NULL -> !NULL, because the only
situation reverting the error counter back to NULL is on destruction of
the notification group, after an RCU synchronisation guarantees that no
record_error can observe this pointer anymore.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/lttng-abi.c
src/lttng-event-notifier-notification.c
src/lttng-events.c
This page took 0.026287 seconds and 4 git commands to generate.