X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcontext.c;h=ef5e3e1f01b5e62977a48f116f8f2ceb3b72522b;hb=d861c9074f19f590c4bd2bf6da482ab3968bf0ab;hp=cee61f764ce192350583154df8e40d808ef7edac;hpb=2219ef3594e0823721931a2ce1409b0d93eff663;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/context.c b/src/bin/lttng-sessiond/context.c index cee61f764..ef5e3e1f0 100644 --- a/src/bin/lttng-sessiond/context.c +++ b/src/bin/lttng-sessiond/context.c @@ -223,6 +223,8 @@ int context_ust_add(struct ltt_ust_session *usess, int domain, struct lttng_ht *chan_ht; struct ltt_ust_channel *uchan = NULL; + rcu_read_lock(); + /* * Define which channel's hashtable to use from the domain or quit if * unknown domain. @@ -285,5 +287,6 @@ int context_ust_add(struct ltt_ust_session *usess, int domain, } error: + rcu_read_unlock(); return ret; }