Re: [PATCH 2/2] scftorture: Use a lock-less list to free memory.

From: Sebastian Andrzej Siewior
Date: Thu Nov 07 2024 - 09:43:23 EST


On 2024-11-07 06:08:35 [-0800], Paul E. McKenney wrote:

> This statement in scf_torture_cleanup() is supposed to wait for all
> outstanding IPIs:
>
> smp_call_function(scf_cleanup_handler, NULL, 0);

This should be
smp_call_function(scf_cleanup_handler, NULL, 1);

so it queues the function call and waits for its completion. Otherwise
it is queued and might be invoked _later_.

> And the scf_cleanup_handler() function is as follows:
>
> static void scf_cleanup_handler(void *unused)
> {
> }
>
> Does that work, or am I yet again being overly naive?

See above. I can send a patch later on if you have no other complains ;)

> Thanx, Paul

Sebastian