From: Mathieu Desnoyers Date: Thu, 19 Jan 2017 00:23:26 +0000 (-0500) Subject: Fix: thread_dispatch_ust_registration needs to be a RCU thread X-Git-Tag: v2.10.0-rc1~69 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=967e3668fc4d224563281a809b1483a397dd9534;p=lttng-tools.git Fix: thread_dispatch_ust_registration needs to be a RCU thread It uses a read-side lock. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 40670ddd5..172f8c270 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; }