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>
Fri, 20 Jan 2017 20:26:23 +0000 (15:26 -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 293654053e87ad046d4cc2716de75e1934b513f8..48d4eec9e11927b7e06b95d5b5d11f97cc2b8aa0 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;
@@ -649,6 +651,8 @@ exit_health_consumerd_cleanup:
 exit_options:
 exit_set_signal_handler:
 
+       rcu_unregister_thread();
+
        if (!retval) {
                exit(EXIT_SUCCESS);
        } else {
This page took 0.029115 seconds and 4 git commands to generate.