X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-relayd%2Fmain.c;h=919c5a96a7a2baa1680febd84ccb9e225fa3a386;hp=7b313818e5c09a5719339740f47b2787304d461b;hb=4d62fbf82e90a66f7196331bf515f58e63801d35;hpb=5f702b607116a8303cb09fb091d8b9740c06baca diff --git a/src/bin/lttng-relayd/main.c b/src/bin/lttng-relayd/main.c index 7b313818e..919c5a96a 100644 --- a/src/bin/lttng-relayd/main.c +++ b/src/bin/lttng-relayd/main.c @@ -2937,6 +2937,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. */