Skip to content

Commit 43082cd

Browse files
Sebastian Andrzej Siewiorpaulmckrcu
authored andcommitted
scftorture: Wait until scf_cleanup_handler() completes.
The smp_call_function() needs to be invoked with the wait flag set to wait until scf_cleanup_handler() is done. This ensures that all SMP function calls, that have been queued earlier, complete at this point. Tested-by: Paul E. McKenney <paulmck@kernel.org> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Reviewed-by: Boqun Feng <boqun.feng@gmail.com> Tested-by: Boqun Feng <boqun.feng@gmail.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
1 parent 42eeb3b commit 43082cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/scftorture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ static void scf_torture_cleanup(void)
523523
torture_stop_kthread("scftorture_invoker", scf_stats_p[i].task);
524524
else
525525
goto end;
526-
smp_call_function(scf_cleanup_handler, NULL, 0);
526+
smp_call_function(scf_cleanup_handler, NULL, 1);
527527
torture_stop_kthread(scf_torture_stats, scf_torture_stats_task);
528528
scf_torture_stats_print(); // -After- the stats thread is stopped!
529529
kfree(scf_stats_p); // -After- the last stats print has completed!

0 commit comments

Comments
 (0)