- cds_lfht_for_each(channels, &iter, node) {
- ret = hashtable_del(channels, &iter);
- if (!ret) {
- call_rcu(&node->head, destroy_channel_rcu);
- }
+ rcu_read_lock();
+
+ cds_lfht_for_each_entry(channels->ht, &iter.iter, node, node) {
+ ret = lttng_ht_del(channels, &iter);
+ assert(!ret);
+ call_rcu(&node->head, destroy_channel_rcu);