From 8a9acb746c06dbb87f8c7c0988b84932747349bc Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 23 Aug 2015 08:58:50 -0700 Subject: [PATCH] Fix: consumer timer misses RCU thread registration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- src/common/consumer-timer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/common/consumer-timer.c b/src/common/consumer-timer.c index 8bf3ae80c..c3a07eca8 100644 --- a/src/common/consumer-timer.c +++ b/src/common/consumer-timer.c @@ -557,6 +557,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)) { @@ -599,6 +601,8 @@ error_testpoint: health_error(); health_unregister(health_consumerd); + rcu_unregister_thread(); + /* Never return */ return NULL; } -- 2.34.1