From 1a29cff2973695e90fa1688b15760c8e98863d6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Sat, 22 Aug 2015 23:35:22 -0400 Subject: [PATCH] Remove unneeded RCU lock MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit lttng_ht_get_count() already holds the RCU read lock. Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/cmd.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 8f450acde..30cfc21c4 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1903,9 +1903,7 @@ int cmd_start_trace(struct ltt_session *session) * possible to enable channel thus inform the client. */ if (usess && usess->domain_global.channels) { - rcu_read_lock(); nb_chan += lttng_ht_get_count(usess->domain_global.channels); - rcu_read_unlock(); } if (ksession) { nb_chan += ksession->channel_count; -- 2.34.1