Re: [feature] automatically detect hung TASK_UNINTERRUPTIBLE tasks

Ingo Molnar
2007-12-04T00:05:53Z

* Rafael J. Wysocki <rjw@sisk.pl> wrote:

> > > Er, it won't play well if that happen when tasks are frozen for
> > > suspend.
> >
> > right now any suspend attempt times out after 20 seconds:
> >
> > $ grep TIMEOUT kernel/power/process.c
> > #define TIMEOUT (20 * HZ)
> > end_time = jiffies + TIMEOUT;
>
> This is the timeout for freezing tasks, but if the freezing succeeds,
> they can stay in TASK_UNINTERRUPTIBLE for quite some more time,
> especially during a hibernation (the tasks stay frozen until we power
> off the system after saving the image).

ah, ok. So this was a live bug - thanks for the clarification.

Ingo