X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fcmd.c;h=636450782d7a7a4729d332c379a157140cf02a28;hb=03b4fdcf623dd767bb03bc6d62fa813d360b4269;hp=b2faa41b114177082d49e41570f43d47384f098f;hpb=d4b5a90c528146f516a80c4e826bd1cfbd40cee8;p=lttng-tools.git 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: {