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>
Thu, 24 Sep 2015 02:04:36 +0000 (22:04 -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 2687eaffd7d556bd00686737a8190d883621979e..02b7b3a49cd9ae81000a4e93c0f0d22b87d32b06 100644 (file)
@@ -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;
 }
This page took 0.034026 seconds and 4 git commands to generate.