Fix: thread_dispatch_ust_registration needs to be a RCU thread
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 Jan 2017 00:23:26 +0000 (19:23 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Jan 2017 00:30:30 +0000 (19:30 -0500)
It uses a read-side lock.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 40670ddd52a5c150053e0ae0fe60ca6f1b252184..172f8c270d5b633466ace52d70fdcf3f3f061318 100644 (file)
@@ -1855,6 +1855,8 @@ static void *thread_dispatch_ust_registration(void *data)
                .count = 0,
        };
 
                .count = 0,
        };
 
+       rcu_register_thread();
+
        health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_REG_DISPATCH);
 
        if (testpoint(sessiond_thread_app_reg_dispatch)) {
        health_register(health_sessiond, HEALTH_SESSIOND_TYPE_APP_REG_DISPATCH);
 
        if (testpoint(sessiond_thread_app_reg_dispatch)) {
@@ -2088,6 +2090,7 @@ error_testpoint:
                ERR("Health error occurred in %s", __func__);
        }
        health_unregister(health_sessiond);
                ERR("Health error occurred in %s", __func__);
        }
        health_unregister(health_sessiond);
+       rcu_unregister_thread();
        return NULL;
 }
 
        return NULL;
 }
 
This page took 0.028022 seconds and 4 git commands to generate.