From ace17efaf90b672f303b22959146c01793e9d4b2 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 15 Jul 2013 21:19:19 -0400 Subject: [PATCH] Document metadata_socket_lock nesting Reviewed-by: Julien Desfossez Signed-off-by: Mathieu Desnoyers --- src/common/consumer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/common/consumer.h b/src/common/consumer.h index 5a1195008..18f64b6ef 100644 --- a/src/common/consumer.h +++ b/src/common/consumer.h @@ -398,7 +398,11 @@ struct lttng_consumer_local_data { int consumer_error_socket; /* socket to ask metadata to sessiond. */ int consumer_metadata_socket; - /* Protect consumer_metadata_socket. */ + /* + * Protect consumer_metadata_socket. + * + * This is nested OUTSIDE the metadata cache lock. + */ pthread_mutex_t metadata_socket_lock; /* socket to exchange commands with sessiond */ char *consumer_command_sock_path; -- 2.34.1