Remove unneeded RCU read lock
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 24 Aug 2015 16:17:46 +0000 (12:17 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 24 Aug 2015 16:27:03 +0000 (12:27 -0400)
lttng_ht_get_count() now takes the RCU read lock automatically.

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

index 0a43eefa66df4e1d9efd53182b2fd7394d5ec8f2..851b9ac5b2f27171dd5bc06fb0ec8b7ad4f02e44 100644 (file)
@@ -1386,11 +1386,7 @@ int save_domains(struct config_writer *writer, struct ltt_session *session)
                        goto end;
                }
 
-               rcu_read_lock();
-               agent_count =
-                       lttng_ht_get_count(session->ust_session->agents);
-               rcu_read_unlock();
-
+               agent_count = lttng_ht_get_count(session->ust_session->agents);
                if (agent_count > 0) {
                        ret = config_writer_open_element(writer,
                                config_element_domain);
This page took 0.02817 seconds and 4 git commands to generate.