Fix: relayd: register listener threads as rcu readers
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 8415e8cef106db18395a2666c79b555b68d418df..3295b009a40f1a93ddc766e288f1bd3cdcb2cf54 100644 (file)
@@ -1075,6 +1075,7 @@ static void *relay_thread_listener(void *data)
 
        DBG("[thread] Relay listener started");
 
+       rcu_register_thread();
        health_register(health_relayd, HEALTH_RELAYD_TYPE_LISTENER);
 
        health_code_update();
@@ -1258,6 +1259,7 @@ error_sock_control:
                ERR("Health error occurred in %s", __func__);
        }
        health_unregister(health_relayd);
+       rcu_unregister_thread();
        DBG("Relay listener thread cleanup complete");
        lttng_relay_stop_threads();
        return NULL;
This page took 0.023199 seconds and 4 git commands to generate.