Re: [PATCH] mm/memory_hotplug: Fix remove_memory() lockdep splat
From: Michal Hocko
Date: Fri Jan 24 2020 - 07:45:17 EST
On Fri 10-01-20 13:27:24, Dan Williams wrote:
> On Fri, Jan 10, 2020 at 9:42 AM David Hildenbrand <david@xxxxxxxxxx> wrote:
[...]
> > For your reference (roughly 5 months ago, so not that old)
> >
> > https://lkml.kernel.org/r/20190724143017.12841-1-david@xxxxxxxxxx
>
> Oh, now I see the problem. You need to add that lock so far away from
> the __add_memory() to avoid lock inversion problems with the
> acpi_scan_lock. The organization I was envisioning would not work
> without deeper refactoring.
Sorry to come back to this late. Has this been resolved?
--
Michal Hocko
SUSE Labs