projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: Reduce scope of relayd connections in live thread
[lttng-tools.git]
/
src
/
bin
/
lttng-relayd
/
connection.c
diff --git
a/src/bin/lttng-relayd/connection.c
b/src/bin/lttng-relayd/connection.c
index 4cf87ad3471d87e21fb31943ec082cc00b597196..76e48a6ab7762a11b1ead8a0fb09c854e3ceb1e5 100644
(file)
--- a/
src/bin/lttng-relayd/connection.c
+++ b/
src/bin/lttng-relayd/connection.c
@@
-17,6
+17,7
@@
*/
#define _GNU_SOURCE
*/
#define _GNU_SOURCE
+#define _LGPL_SOURCE
#include <common/common.h>
#include "connection.h"
#include <common/common.h>
#include "connection.h"
@@
-31,6
+32,10
@@
static void rcu_free_connection(struct rcu_head *head)
connection_free(conn);
}
connection_free(conn);
}
+/*
+ * Must be called with a read side lock held. The read side lock must be
+ * kept until the returned relay_connection is no longer in use.
+ */
struct relay_connection *connection_find_by_sock(struct lttng_ht *ht, int sock)
{
struct lttng_ht_node_ulong *node;
struct relay_connection *connection_find_by_sock(struct lttng_ht *ht, int sock)
{
struct lttng_ht_node_ulong *node;
This page took
0.026756 seconds
and
5
git commands to generate.