projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: hash table cleanup call_rcu deadlock
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
consumer.c
diff --git
a/src/bin/lttng-sessiond/consumer.c
b/src/bin/lttng-sessiond/consumer.c
index e3d1be0ccc3446133746ba3db595242204c355ab..2e20878856fd1ee1ab1637b6ff297044bda58d77 100644
(file)
--- a/
src/bin/lttng-sessiond/consumer.c
+++ b/
src/bin/lttng-sessiond/consumer.c
@@
-32,6
+32,7
@@
#include "consumer.h"
#include "health.h"
#include "ust-app.h"
#include "consumer.h"
#include "health.h"
#include "ust-app.h"
+#include "utils.h"
/*
* Receive a reply command status message from the consumer. Consumer socket
/*
* Receive a reply command status message from the consumer. Consumer socket
@@
-407,6
+408,8
@@
error:
/*
* Delete the consumer_output object from the list and free the ptr.
/*
* Delete the consumer_output object from the list and free the ptr.
+ *
+ * Should *NOT* be called with RCU read-side lock held.
*/
void consumer_destroy_output(struct consumer_output *obj)
{
*/
void consumer_destroy_output(struct consumer_output *obj)
{
@@
-426,7
+429,7
@@
void consumer_destroy_output(struct consumer_output *obj)
rcu_read_unlock();
/* Finally destroy HT */
rcu_read_unlock();
/* Finally destroy HT */
-
lttng_ht_destroy
(obj->socks);
+
ht_cleanup_push
(obj->socks);
}
free(obj);
}
free(obj);
@@
-434,6
+437,8
@@
void consumer_destroy_output(struct consumer_output *obj)
/*
* Copy consumer output and returned the newly allocated copy.
/*
* Copy consumer output and returned the newly allocated copy.
+ *
+ * Should *NOT* be called with RCU read-side lock held.
*/
struct consumer_output *consumer_copy_output(struct consumer_output *obj)
{
*/
struct consumer_output *consumer_copy_output(struct consumer_output *obj)
{
@@
-1121,7
+1126,7
@@
int consumer_push_metadata(struct consumer_socket *socket,
goto end;
}
goto end;
}
- DBG3("Consumer pushing metadata on sock %d of len %
l
u", socket->fd, len);
+ DBG3("Consumer pushing metadata on sock %d of len %
z
u", socket->fd, len);
ret = lttcomm_send_unix_sock(socket->fd, metadata_str, len);
if (ret < 0) {
ret = lttcomm_send_unix_sock(socket->fd, metadata_str, len);
if (ret < 0) {
This page took
0.031017 seconds
and
5
git commands to generate.