[lttng-dev] [PATCH lttng-tools 1/2] Fix: thread_dispatch_ust_registration needs to be a RCU thread
Jérémie Galarneau
jeremie.galarneau at efficios.com
Fri Jan 20 20:54:27 UTC 2017
Both patches were merged in master, stable2-9 and stable-2.8.
Thanks!
Jérémie
On 18 January 2017 at 19:23, Mathieu Desnoyers
<mathieu.desnoyers at efficios.com> wrote:
> 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
>
--
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com
More information about the lttng-dev
mailing list