Remove unneeded RCU lock
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Aug 2015 03:35:22 +0000 (23:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sun, 23 Aug 2015 04:24:13 +0000 (00:24 -0400)
lttng_ht_get_count() already holds the RCU read lock.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 8f450acdef70287cd6b757d06d254a13ad2afd39..30cfc21c4f07fc5f90d637d260a8cbe3740b5a41 100644 (file)
@@ -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;
This page took 0.028272 seconds and 5 git commands to generate.