Fix: consumer timer misses RCU thread registration
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 23 Aug 2015 15:58:50 +0000 (08:58 -0700)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 4 Sep 2015 22:43:42 +0000 (18:43 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer-timer.c

index 8bf3ae80c2c4f4f35bf91780057f11f5f6a7b786..c3a07eca8a1dd7af4299e134665685495a33967b 100644 (file)
@@ -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;
 }
This page took 0.029506 seconds and 5 git commands to generate.