From: Jérémie Galarneau Date: Sun, 6 Sep 2015 23:40:13 +0000 (-0400) Subject: Document locking assumption of agent_find_event() X-Git-Tag: v2.8.0-rc1~366 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e17eae2caf39bcef3ce9a1602b00c70279c0db8;p=lttng-tools.git Document locking assumption of agent_find_event() Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index bc72ff93f..a4b1b3434 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -920,7 +920,8 @@ void agent_event_next_duplicate(const char *name, /* * Find a agent event in the given agent using name and loglevel. * - * RCU read side lock MUST be acquired. + * RCU read side lock MUST be acquired. It must be kept for as long as + * the returned agent_event is used. * * Return object if found else NULL. */