Re: [BUG] mutex deadlock of dpm_resume() in low memory situation

From: Rafael J. Wysocki
Date: Wed Dec 27 2023 - 13:58:39 EST


On Wednesday, December 27, 2023 7:39:20 PM CET Rafael J. Wysocki wrote:
> On Wednesday, December 27, 2023 5:08:40 PM CET Greg KH wrote:
> > On Wed, Dec 27, 2023 at 05:42:50PM +0900, Youngmin Nam wrote:
> > > Could you look into this issue ?
> >
> > Can you submit a patch that resolves the issue for you, as you have a
> > way to actually test this out? That would be the quickest way to get it
> > resolved, and to help confirm that this is even an issue at all.
>
> Something like the appended patch should be sufficient to address this AFAICS.
>
> I haven't tested it yet (will do so shortly), so all of the usual disclaimers
> apply.
>
> I think that it can be split into 2 patches, but for easier testing here
> it goes in one piece.

Well, please scratch this, it will not handle "async" devices properly.