X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fsession.c;h=b6b24b76c3f9ae28cec31d3c9e3224351647a2ef;hp=17dc3544dbe55a4dac884b5af9f178e2f1c44991;hb=36b588eddce05ef840bd247f6a58316925b9a0a2;hpb=3a1aff7a271016fa0104e45492ca94e7e06b2492 diff --git a/src/bin/lttng-sessiond/session.c b/src/bin/lttng-sessiond/session.c index 17dc3544d..b6b24b76c 100644 --- a/src/bin/lttng-sessiond/session.c +++ b/src/bin/lttng-sessiond/session.c @@ -147,6 +147,7 @@ found: * Delete session from the session list and free the memory. * * Return -1 if no session is found. On success, return 1; + * Should *NOT* be called with RCU read-side lock held. */ int session_destroy(struct ltt_session *session) { @@ -157,9 +158,7 @@ int session_destroy(struct ltt_session *session) del_session_list(session); pthread_mutex_destroy(&session->lock); - rcu_read_lock(); consumer_destroy_output(session->consumer); - rcu_read_unlock(); free(session); return LTTNG_OK;