projects
/
lttng-modules.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: metadata stream leak, missing list removal and locking
[lttng-modules.git]
/
lttng-events.c
diff --git
a/lttng-events.c
b/lttng-events.c
index b7c183e91f97ca4033506890a4dc9ec47e0191c1..59b37b93c818d74c369fc7d6b9342719b6ebd911 100644
(file)
--- a/
lttng-events.c
+++ b/
lttng-events.c
@@
-1696,9
+1696,9
@@
void lttng_metadata_end(struct lttng_session *session)
if (atomic_dec_return(&session->metadata_cache->producing) == 0) {
struct lttng_metadata_stream *stream;
if (atomic_dec_return(&session->metadata_cache->producing) == 0) {
struct lttng_metadata_stream *stream;
- mutex_unlock(&session->metadata_cache->lock);
list_for_each_entry(stream, &session->metadata_cache->metadata_stream, list)
wake_up_interruptible(&stream->read_wait);
list_for_each_entry(stream, &session->metadata_cache->metadata_stream, list)
wake_up_interruptible(&stream->read_wait);
+ mutex_unlock(&session->metadata_cache->lock);
}
}
}
}
This page took
0.023182 seconds
and
4
git commands to generate.