Re: [PATCH 2/2] x86/MCE: Add command line option to extend MCE Records pool

Borislav Petkov
2024-02-12T20:18:53Z

On Mon, Feb 12, 2024 at 01:40:21PM -0600, Naik, Avadhut wrote:
> The spinlock is mostly held to prevent other primitives
> from modifying chunks within the genpool.
>
> In #MC context however, we are not modifying the existing
> chunks, per se.

What if we decide to do

mce[i]count++;

in #MC context?

That's modifying the existing chunks.

TBH, I'm not sure what that spinlock is for. See my reply to that same
subthread.

--
Regards/Gruss,
Boris.