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.10.0-rc1~68 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fe19a07a543415355ad6ab04e6fe72f167a48262;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 7f78c4ec2..2f8eed108 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; @@ -643,6 +645,8 @@ exit_health_consumerd_cleanup: exit_options: exit_set_signal_handler: + rcu_unregister_thread(); + if (!retval) { exit(EXIT_SUCCESS); } else {