Re: [PATCH v2 4/7] ghes_edac: avoid multiple calls to dmi_walk()

From: Steven Rostedt
Date: Wed Aug 16 2017 - 10:22:57 EST


On Wed, 16 Aug 2017 16:03:50 +0200
Borislav Petkov <bp@xxxxxxxxx> wrote:

> > What's the likelihood of two calls to ghes_edac_register being done
> > simultaneously? Because two calls at the same time will get past this.
>
> Well, that thing gets called per GHES platform device and last time I
> checked they do get probed back-to-back but I'll check that again.

Maybe keep that original mutex just in case.

-- Steve