Fix: add missing rcu_barrier before daemon teardown
[lttng-tools.git] / src / bin / lttng-relayd / main.c
index 2714f783bcc97768063ff3f01605f1c9dc55688f..56efaae3409748ba6134d72de26692aae6689649 100644 (file)
@@ -2944,6 +2944,12 @@ exit_init_data:
        health_app_destroy(health_relayd);
 exit_health_app_create:
 exit_options:
+       /*
+        * Wait for all pending call_rcu work to complete before tearing
+        * down data structures. call_rcu worker may be trying to
+        * perform lookups in those structures.
+        */
+       rcu_barrier();
        relayd_cleanup();
 
        /* Ensure all prior call_rcu are done. */
This page took 0.025439 seconds and 4 git commands to generate.