Re: [PATCH] power: suspend: Add suspend timeout handler

From: Rafael J. Wysocki
Date: Fri Oct 16 2020 - 09:03:48 EST


On Fri, Oct 16, 2020 at 11:01 AM Petr Mladek <pmladek@xxxxxxxx> wrote:
>
> On Fri 2020-10-16 11:51:09, Joseph Jang wrote:
> > From: josephjang <josephjang@xxxxxxxxxx>
> >
> > Add suspend timeout handler to prevent device stuck during suspend/
> > resume process. Suspend timeout handler will dump disk sleep task
> > at first round timeout and trigger kernel panic at second round timeout.
> > The default timer for each round is 30 seconds.
>
> A better solution would be to resume instead of panic().

Well, abort the suspend if it happens during suspend or continue if it
happens during resume,

But we have a suspend watchdog already, don't we?