From: Jérémie Galarneau Date: Thu, 16 Jul 2015 17:00:56 +0000 (-0400) Subject: Fix: Document the locking assumptions of ctf_trace_find_by_path() X-Git-Tag: v2.8.0-rc1~552 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=89f7a0c719c471a8b26e0de6faa9a393d933e1eb;p=lttng-tools.git Fix: Document the locking assumptions of ctf_trace_find_by_path() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-relayd/ctf-trace.c b/src/bin/lttng-relayd/ctf-trace.c index aed9eb4da..02a8b2bf1 100644 --- a/src/bin/lttng-relayd/ctf-trace.c +++ b/src/bin/lttng-relayd/ctf-trace.c @@ -117,6 +117,8 @@ error: /* * Return a ctf_trace object if found by id in the given hash table else NULL. + * + * Must be called with rcu_read_lock() taken. */ struct ctf_trace *ctf_trace_find_by_path(struct lttng_ht *ht, char *path_name)