Re: [PATCH 1/2] PM: runtime: Fix I/O hang due to race between resume and runtime disable
From: Rafael J. Wysocki
Date: Wed Nov 26 2025 - 10:41:36 EST
On Wed, Nov 26, 2025 at 4:34 PM Bart Van Assche <bvanassche@xxxxxxx> wrote:
>
> On 11/26/25 4:36 AM, Rafael J. Wysocki wrote:
> > Well, the code as is now schedules an async resume of the device and
> > then waits for it to complete. It would be more straightforward to
> > resume the device synchronously IMV.
>
> That would increase the depth of the call stack significantly. I'm not
> sure that's safe in this context.
As it stands, you have a basic problem with respect to system
suspend/hibernation. As I said before, the PM workqueue is frozen
during system suspend/hibernation transitions, so waiting for an async
resume request to complete then is pointless.