X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fstream.c;h=8825d094ce57b389662667bfd5d567ca0ed77cfd;hp=b604919a78b376062cc52ed8a0a5b189d0be3143;hb=49e614cb2878f0664c9f44f9f24cb1d81116de21;hpb=7567352fb68f5c3f49f549c579f5bd27c883bed2 diff --git a/src/bin/lttng-relayd/stream.c b/src/bin/lttng-relayd/stream.c index b604919a7..8825d094c 100644 --- a/src/bin/lttng-relayd/stream.c +++ b/src/bin/lttng-relayd/stream.c @@ -253,6 +253,11 @@ static void stream_unpublish(struct relay_stream *stream) static void stream_destroy(struct relay_stream *stream) { if (stream->indexes_ht) { + /* + * Calling lttng_ht_destroy in call_rcu worker thread so + * we don't hold the RCU read-side lock while calling + * it. + */ lttng_ht_destroy(stream->indexes_ht); } if (stream->tfa) {