From: David Goulet Date: Fri, 12 Jul 2013 14:23:28 +0000 (-0400) Subject: Fix: RCU read side lock unbalanced X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=commitdiff_plain;h=03b4fdcf623dd767bb03bc6d62fa813d360b4269 Fix: RCU read side lock unbalanced Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index b2faa41b1..636450782 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -857,6 +857,8 @@ int cmd_enable_channel(struct ltt_session *session, DBG("Enabling channel %s for session %s", attr->name, session->name); + rcu_read_lock(); + /* * Don't try to enable a channel if the session has been started at * some point in time before. The tracer does not allow it. @@ -866,8 +868,6 @@ int cmd_enable_channel(struct ltt_session *session, goto error; } - rcu_read_lock(); - switch (domain->type) { case LTTNG_DOMAIN_KERNEL: {