From: Mathieu Desnoyers Date: Thu, 19 Jan 2017 00:23:27 +0000 (-0500) Subject: Fix: consumerd main: needs to be a registered RCU thread X-Git-Tag: v2.8.7~26 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d2cb1b98a8ee113bfe1b195465037c112dd2362a;p=lttng-tools.git Fix: consumerd main: needs to be a registered RCU thread main->lttng_consumer_destroy->destroy_data_stream_ht requires a RCU read-side lock. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-consumerd/lttng-consumerd.c b/src/bin/lttng-consumerd/lttng-consumerd.c index 293654053..48d4eec9e 100644 --- a/src/bin/lttng-consumerd/lttng-consumerd.c +++ b/src/bin/lttng-consumerd/lttng-consumerd.c @@ -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 {