X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent-thread.c;h=9ac975cbf1ea9539c4d81db352089b25d12af561;hp=33cb387c906dd744a12aa8dff554fb2dfda13ab8;hb=d558f2363a2daf3e456a28a6089f7464837ed542;hpb=a51e817b49ef4b96a11c124e0d1caa88025fe6eb diff --git a/src/bin/lttng-sessiond/agent-thread.c b/src/bin/lttng-sessiond/agent-thread.c index 33cb387c9..9ac975cbf 100644 --- a/src/bin/lttng-sessiond/agent-thread.c +++ b/src/bin/lttng-sessiond/agent-thread.c @@ -90,13 +90,13 @@ static void destroy_agent_app(int sock) rcu_read_lock(); app = agent_find_app_by_sock(sock); assert(app); - rcu_read_unlock(); - /* RCU read side lock is taken in this function call. */ + /* RCU read side lock is assumed to be held by this function. */ agent_delete_app(app); /* The application is freed in a RCU call but the socket is closed here. */ agent_destroy_app(app); + rcu_read_unlock(); } /*