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

From: Paul E. McKenney
Date: Mon Feb 12 2024 - 20:46:19 EST


On Tue, Feb 13, 2024 at 12:10:09AM +0100, Borislav Petkov wrote:
> On Mon, Feb 12, 2024 at 02:46:57PM -0800, Paul E. McKenney wrote:
> > The usual reason is to exclude other CPUs also doing list_add_rcu()
> > on the same list.
>
> Doh, it even says so in the comment above list_add_rcu().
>
> And the traversal which is happening in NMI-like context is fine.
>
> So phew, I think we should be fine here. Thanks!
>
> And as it turns out, we're not going to need any of that after all as
> it looks like we can allocate the proper size from the very beginning...

Sounds even better! ;-)

Thanx, Paul