From 89f7a0c719c471a8b26e0de6faa9a393d933e1eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Thu, 16 Jul 2015 13:00:56 -0400 Subject: [PATCH 1/1] Fix: Document the locking assumptions of ctf_trace_find_by_path() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng-relayd/ctf-trace.c | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.34.1