From: Jérémie Galarneau Date: Sun, 30 Aug 2015 21:39:23 +0000 (-0400) Subject: Remove unnecessary RCU read lock X-Git-Tag: v2.8.0-rc1~448 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=46414153463abe07cd1c4a2a1855a63a60af8aa5;p=lttng-tools.git Remove unnecessary RCU read lock Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/agent.c b/src/bin/lttng-sessiond/agent.c index 0f61a75d6..082163086 100644 --- a/src/bin/lttng-sessiond/agent.c +++ b/src/bin/lttng-sessiond/agent.c @@ -861,10 +861,7 @@ void agent_add_event(struct agent_event *event, struct agent *agt) assert(agt->events); DBG3("Agent adding event %s", event->name); - - rcu_read_lock(); add_unique_agent_event(agt->events, event); - rcu_read_unlock(); agt->being_used = 1; }