Fix: Perform rcu barrier before tearing down the run-as worker
[lttng-tools.git] / src / bin / lttng-sessiond / main.c
index 5d098d7689a10e8b80417e92ea2da7efd85f5eb2..9d5a668e5c5446983583f83907102a766db6f73c 100644 (file)
@@ -6136,11 +6136,12 @@ exit_health_sessiond_cleanup:
 exit_create_run_as_worker_cleanup:
 
 exit_options:
+       /* Ensure all prior call_rcu are done. */
+       rcu_barrier();
+
        sessiond_cleanup_options();
 
 exit_set_signal_handler:
-       /* Ensure all prior call_rcu are done. */
-       rcu_barrier();
 
        if (!retval) {
                exit(EXIT_SUCCESS);
This page took 0.023856 seconds and 5 git commands to generate.