[lttng-dev] [PATCH lttng-tools 1/2] Fix: thread_dispatch_ust_registration needs to be a RCU thread
Mathieu Desnoyers
mathieu.desnoyers at efficios.com
Thu Jan 19 00:23:26 UTC 2017
It uses a read-side lock.
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
src/bin/lttng-sessiond/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c
index 40670dd..172f8c2 100644
--- a/src/bin/lttng-sessiond/main.c
+++ b/src/bin/lttng-sessiond/main.c
@@ -1855,6 +1855,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)) {
@@ -2088,6 +2090,7 @@ error_testpoint:
ERR("Health error occurred in %s", __func__);
}
health_unregister(health_sessiond);
+ rcu_unregister_thread();
return NULL;
}
--
2.1.4
More information about the lttng-dev
mailing list