From: Jérémie Galarneau Date: Thu, 4 Oct 2018 02:05:32 +0000 (-0400) Subject: Fix: register rotation thread as RCU thread X-Git-Tag: v2.12.0-rc1~788 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=03732c3281c0cfbfd5f1a6b7723c577cab43bab3;p=lttng-tools.git Fix: register rotation thread as RCU thread Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/rotation-thread.c b/src/bin/lttng-sessiond/rotation-thread.c index 3747ebae7..c0d1cf146 100644 --- a/src/bin/lttng-sessiond/rotation-thread.c +++ b/src/bin/lttng-sessiond/rotation-thread.c @@ -876,6 +876,9 @@ void *thread_rotation(void *data) goto end; } + rcu_register_thread(); + rcu_thread_online(); + health_register(health_sessiond, HEALTH_SESSIOND_TYPE_ROTATION); health_code_update(); @@ -945,6 +948,8 @@ error: DBG("[rotation-thread] Exit"); fini_thread_state(&thread); health_unregister(health_sessiond); + rcu_thread_offline(); + rcu_unregister_thread(); end: return NULL; }