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>
Fri, 20 Jan 2017 20:26:23 +0000 (15:26 -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 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.026667 seconds and 4 git commands to generate.