From: Mathieu Desnoyers Date: Sun, 23 Aug 2015 15:58:50 +0000 (-0700) Subject: Fix: consumer timer misses RCU thread registration X-Git-Tag: v2.6.1~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=8f79de7eeefc04a9a730817623a9e31c2ec1d3b6;p=lttng-tools.git Fix: consumer timer misses RCU thread registration Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index 2687eaffd..02b7b3a49 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -554,6 +554,8 @@ void *consumer_timer_thread(void *data) siginfo_t info; struct lttng_consumer_local_data *ctx = data; + rcu_register_thread(); + health_register(health_consumerd, HEALTH_CONSUMERD_TYPE_METADATA_TIMER); if (testpoint(consumerd_thread_metadata_timer)) { @@ -596,6 +598,8 @@ error_testpoint: health_error(); health_unregister(health_consumerd); + rcu_unregister_thread(); + /* Never return */ return NULL; }