summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
a863986)
Acked-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
- * Iterate over all stream element of the hashtable and free them. This is race
- * free since the hashtable received MUST be in a race free synchronization
- * state. It's the caller responsability to make sure of that.
+ * Iterate over all streams of the hashtable and free them properly.
*/
static void destroy_stream_ht(struct lttng_ht *ht)
{
*/
static void destroy_stream_ht(struct lttng_ht *ht)
{
ret = lttng_ht_del(ht, &iter);
assert(!ret);
ret = lttng_ht_del(ht, &iter);
assert(!ret);
+ call_rcu(&stream->node.head, consumer_free_stream);
consumer_del_channel(stream->chan);
}
consumer_del_channel(stream->chan);
}
+ call_rcu(&stream->node.head, consumer_free_stream);