Enforce documented RCU preconditions with assertions
[lttng-tools.git] / src / bin / lttng-sessiond / client.cpp
index 0820bca7690c6bd116ddad5c5e42ecedff3f3576..7f3c81782d50c3ed7e9812aacbcaed41dbcaf3ef 100644 (file)
@@ -416,8 +416,6 @@ error:
  * Copy consumer output from the tracing session to the domain session. The
  * function also applies the right modification on a per domain basis for the
  * trace files destination directory.
- *
- * Should *NOT* be called with RCU read-side lock held.
  */
 static int copy_session_consumer(int domain, struct ltt_session *session)
 {
@@ -481,8 +479,6 @@ error:
 
 /*
  * Create an UST session and add it to the session ust list.
- *
- * Should *NOT* be called with RCU read-side lock held.
  */
 static int create_ust_session(struct ltt_session *session,
                const struct lttng_domain *domain)
@@ -919,8 +915,6 @@ end:
  * "sock" is only used for special-case var. len data.
  * A command may assume the ownership of the socket, in which case its value
  * should be set to -1.
- *
- * Should *NOT* be called with RCU read-side lock held.
  */
 static int process_client_msg(struct command_ctx *cmd_ctx, int *sock,
                int *sock_error)
@@ -934,8 +928,6 @@ static int process_client_msg(struct command_ctx *cmd_ctx, int *sock,
                lttcomm_sessiond_command_str((lttcomm_sessiond_command) cmd_ctx->lsm.cmd_type),
                cmd_ctx->lsm.cmd_type);
 
-       LTTNG_ASSERT(!rcu_read_ongoing());
-
        *sock_error = 0;
 
        switch (cmd_ctx->lsm.cmd_type) {
This page took 0.023284 seconds and 4 git commands to generate.