[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241107144300.gbzCzBRf@linutronix.de>
Date: Thu, 7 Nov 2024 15:43:00 +0100
From: Sebastian Andrzej Siewior <bigeasy@...utronix.de>
To: "Paul E. McKenney" <paulmck@...nel.org>
Cc: Boqun Feng <boqun.feng@...il.com>, Vlastimil Babka <vbabka@...e.cz>,
Marco Elver <elver@...gle.com>, linux-kernel@...r.kernel.org,
kasan-dev@...glegroups.com, linux-mm@...ck.org,
sfr@...b.auug.org.au, longman@...hat.com, cl@...ux.com,
penberg@...nel.org, rientjes@...gle.com, iamjoonsoo.kim@....com,
akpm@...ux-foundation.org, Tomas Gleixner <tglx@...utronix.de>,
Peter Zijlstra <peterz@...radead.org>
Subject: Re: [PATCH 2/2] scftorture: Use a lock-less list to free memory.
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
Powered by blists - more mailing lists