projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: relayd: don't call lttng_ht_destroy in RCU read-side C.S.
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
stream.c
diff --git
a/src/bin/lttng-relayd/stream.c
b/src/bin/lttng-relayd/stream.c
index b604919a78b376062cc52ed8a0a5b189d0be3143..8825d094ce57b389662667bfd5d567ca0ed77cfd 100644
(file)
--- 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) {
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) {
lttng_ht_destroy(stream->indexes_ht);
}
if (stream->tfa) {
This page took
0.039991 seconds
and
4
git commands to generate.