From: David Goulet Date: Mon, 28 Nov 2011 19:57:12 +0000 (-0500) Subject: Change ust app clean list loop X-Git-Tag: v2.0-pre15~69^2~4 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=778ca3dd8ad4b1f79ab64aec0abf1134f4bcd1a8;p=lttng-tools.git Change ust app clean list loop Signed-off-by: David Goulet --- diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index d36cf8893..51ae71c4f 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -1160,9 +1160,7 @@ void ust_app_clean_list(void) rcu_read_lock(); - cds_lfht_for_each(ust_app_ht, &iter, node) { - app = caa_container_of(node, struct ust_app, node); - + cds_lfht_for_each_entry(ust_app_ht, &iter, app, node) { ret = hashtable_del(ust_app_ht, &iter); if (!ret) { call_rcu(&node->head, delete_ust_app_rcu);