Fix: thread_dispatch_ust_registration needs to be a RCU thread
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index b29c6745bd51e8ea0cd1c0d9648f0ab8c3fe4198..a12a6a4549b97f80b754a53f5728a2f6615726dc 100644 (file)
@@ -1903,6 +1903,8 @@ static void *thread_dispatch_ust_registration(void *data)
                .count = 0,
        };
 
+       rcu_register_thread();
+
        health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_REG_DISPATCH);
 
        if (testpoint(sessiond_thread_app_reg_dispatch)) {
@@ -2136,6 +2138,7 @@ error_testpoint:
                ERR("Health error occurred in %s", __func__);
        }
        health_unregister(health_sessiond);
+       rcu_unregister_thread();
        return NULL;
 }
 
This page took 0.025752 seconds and 4 git commands to generate.