Fix: sessiond consumer thread should register as RCU thread
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index c5c7d84b1f5d7bb0d434fff7f187665ca9041cc7..5a7d153e568743c73365549bd9676311789b9c48 100644 (file)
@@ -1216,6 +1216,9 @@ static void *thread_manage_consumer(void *data)
 
        DBG("[thread] Manage consumer started");
 
+       rcu_register_thread();
+       rcu_thread_online();
+
        health_register(health_sessiond, HEALTH_SESSIOND_TYPE_CONSUMER);
 
        health_code_update();
@@ -1514,6 +1517,9 @@ error_poll:
        health_unregister(health_sessiond);
        DBG("consumer thread cleanup completed");
 
+       rcu_thread_offline();
+       rcu_unregister_thread();
+
        return NULL;
 }
 
This page took 0.024897 seconds and 5 git commands to generate.