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

From: Borislav Petkov
Date: Fri Aug 11 2017 - 05:04:44 EST


On Mon, Aug 07, 2017 at 05:59:15PM +0000, Kani, Toshimitsu wrote:
> I think we should keep the current scheme, which registers an mci for

No we shouldn't.

> each GHES entry. ghes_edac_report_mem_error() expects that error-
> reporting is serialized per a GHES entry. Sharing a single mci among
> all GHES entries / error interfaces might lead to a race condition.

See how I solved it in my patchset and feel free to reuse it.

--
Regards/Gruss,
Boris.

ECO tip #101: Trim your mails when you reply.
--