aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Andrzej Siewior <[email protected]>2024-11-08 10:39:32 +0000
committerPaul E. McKenney <[email protected]>2024-11-09 17:00:46 +0000
commit43082cd579fbeea2ed90982f1c875bbdb2bcad2e (patch)
tree0e5ca42d8f1c14d21ce86950c8ac82797c47b4aa
parentscftorture: Avoid additional div operation. (diff)
downloadkernel-43082cd579fbeea2ed90982f1c875bbdb2bcad2e.tar.gz
kernel-43082cd579fbeea2ed90982f1c875bbdb2bcad2e.zip
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 <[email protected]> Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Reviewed-by: Boqun Feng <[email protected]> Tested-by: Boqun Feng <[email protected]> Signed-off-by: Paul E. McKenney <[email protected]>
-rw-r--r--kernel/scftorture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/scftorture.c b/kernel/scftorture.c
index 455cbff35a1a..654702f75c54 100644
--- a/kernel/scftorture.c
+++ b/kernel/scftorture.c
@@ -523,7 +523,7 @@ static void scf_torture_cleanup(void)
torture_stop_kthread("scftorture_invoker", scf_stats_p[i].task);
else
goto end;
- smp_call_function(scf_cleanup_handler, NULL, 0);
+ smp_call_function(scf_cleanup_handler, NULL, 1);
torture_stop_kthread(scf_torture_stats, scf_torture_stats_task);
scf_torture_stats_print(); // -After- the stats thread is stopped!
kfree(scf_stats_p); // -After- the last stats print has completed!