Re: [RFC PATCH 1/2] smp: Implement serialized smp_call_function APIs

From: Mathieu Desnoyers
Date: Wed Mar 13 2024 - 19:24:51 EST


On 2024-03-13 17:19, Linus Torvalds wrote:
On Wed, 13 Mar 2024 at 13:56, Mathieu Desnoyers
<mathieu.desnoyers@xxxxxxxxxxxx> wrote:

Introduce serialized smp_call_function APIs to limit the number of
concurrent smp_call_function IPIs which can be sent to a given CPU to a
maximum of two: one broadcast and one specifically targeting the CPU.

So honestly, with only one user, I think the serialization code
should be solidly in that one user, not in kernel/smp.c.

Good point, unless other users of this show up, I could move it
into membarrier.c. But only if anyone cares enough to come up
with benchmarks justifying the added complexity.


Also, this kind of extra complexity does require numbers to argue for it.

Of course,

Thanks,

Mathieu


Linus

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com