Fix: UST app clean list node usage
authorDavid Goulet <dgoulet@efficios.com>
Fri, 26 Oct 2012 17:23:25 +0000 (13:23 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Fri, 26 Oct 2012 17:23:25 +0000 (13:23 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index c93f93dc9add8333c07470688ae95f14a8f1ec80..6f73c6df34a4006353ab1796e35743c51b2dd2a2 100644 (file)
@@ -1702,21 +1702,22 @@ error:
 void ust_app_clean_list(void)
 {
        int ret;
+       struct ust_app *app;
        struct lttng_ht_iter iter;
-       struct lttng_ht_node_ulong *node;
 
        DBG2("UST app cleaning registered apps hash table");
 
        rcu_read_lock();
 
-       cds_lfht_for_each_entry(ust_app_ht->ht, &iter.iter, node, node) {
+       cds_lfht_for_each_entry(ust_app_ht->ht, &iter.iter, app, pid_n.node) {
                ret = lttng_ht_del(ust_app_ht, &iter);
                assert(!ret);
-               call_rcu(&node->head, delete_ust_app_rcu);
+               call_rcu(&app->pid_n.head, delete_ust_app_rcu);
        }
 
        /* Cleanup socket hash table */
-       cds_lfht_for_each_entry(ust_app_ht_by_sock->ht, &iter.iter, node, node) {
+       cds_lfht_for_each_entry(ust_app_ht_by_sock->ht, &iter.iter, app,
+                       sock_n.node) {
                ret = lttng_ht_del(ust_app_ht_by_sock, &iter);
                assert(!ret);
        }
This page took 0.027881 seconds and 4 git commands to generate.