Fix: consumerd main: needs to be a registered RCU thread
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 Jan 2017 00:23:27 +0000 (19:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Jan 2017 00:30:48 +0000 (19:30 -0500)
main->lttng_consumer_destroy->destroy_data_stream_ht requires a RCU
read-side lock.

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

index 7f78c4ec2b0971fcfa249a3c35f7c953bd5a8d39..2f8eed1085dfed209ba5f00979621e2f603d44be 100644 (file)
@@ -308,6 +308,8 @@ int main(int argc, char **argv)
        void *status;
        struct lttng_consumer_local_data *tmp_ctx;
 
+       rcu_register_thread();
+
        if (set_signal_handler()) {
                retval = -1;
                goto exit_set_signal_handler;
@@ -643,6 +645,8 @@ exit_health_consumerd_cleanup:
 exit_options:
 exit_set_signal_handler:
 
+       rcu_unregister_thread();
+
        if (!retval) {
                exit(EXIT_SUCCESS);
        } else {
This page took 0.025785 seconds and 4 git commands to generate.