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.8.7~27 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=322e7d38a1df74fea5a1930cec100862b095b831;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 b29c6745b..a12a6a454 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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; }