X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fconnection.c;h=76e48a6ab7762a11b1ead8a0fb09c854e3ceb1e5;hb=0c0e3b4112d52fb54a844300b36f1373e3055c8f;hp=2376a3f29c973c45b3671e0eea413f06cea24deb;hpb=6c1c0768320135c6936c371b09731851b508c023;p=lttng-tools.git diff --git a/src/bin/lttng-relayd/connection.c b/src/bin/lttng-relayd/connection.c index 2376a3f29..76e48a6ab 100644 --- a/src/bin/lttng-relayd/connection.c +++ b/src/bin/lttng-relayd/connection.c @@ -32,6 +32,10 @@ static void rcu_free_connection(struct rcu_head *head) 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;