Fix: add missing rcu_barrier before daemon teardown
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 21 Dec 2016 22:59:38 +0000 (17:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 9 Jan 2017 17:34:28 +0000 (12:34 -0500)
commit2668465ad65b704f0936f2e42103520961180e87
treefce34b3aa3c93ff3aecc64df98667fc2e32e3162
parent757eebfd3901aca40fd2a30a0bf304ca7ad68731
Fix: add missing rcu_barrier before daemon teardown

When performing the "cleanup" of sessiond, consumerd, and relayd, we
destroy data structures that may still be concurrently accessed by
call_rcu worker thread.

Ensure no more work is present in the call_rcu worker thread by issuing
a rcu_barrier barrier. Note that this expects call_rcu handlers don't
chain work to other call_rcu handlers.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-consumerd/lttng-consumerd.c
src/bin/lttng-relayd/main.c
src/bin/lttng-sessiond/main.c
This page took 0.027327 seconds and 4 git commands to generate.