lkml.org 
[lkml]   [2011]   [Aug]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 06/16] freezer: make exiting tasks properly unfreezable
Hello,

On Thu, Aug 25, 2011 at 11:01:41PM +0200, Rafael J. Wysocki wrote:
> > But still I can't understand why it is better to consider the exiting
> > task as "frozen" from the very beginning, right after PTRACE_EVENT_EXIT.
> > do_exit() does a lot of misc things, and this patch simply makes it
> > "invisible" to the freezer. This looks "unsafe" even if this is fine
> > for suspend/etc.
>
> Suspend needs the freezer to ensure that processes (user space mostly)
> won't interact with drivers in any way while devices are being suspended,
> so if a process is in a state in which it won't talk to any driver
> and make changes to filesystems any more, it's irrelevant from the
> suspend's point of view.

Hmm... but freezer can't really achieve that. There are other sources
of activities. But anyways, yeah, I think Oleg is right here and we
should be setting NOFREEZE on transition to EXIT_DEAD.

> > > Rafael, can you please enlighten us on the subject?
> >
> > Please ;)
>
> Is the above sufficient?

One thing I'm curious about is how many drivers do we have left which
depend on freezer as opposed to implementing proper quiescing
mechanism using PM hooks? Are there still a lot left?

Thanks.

--
tejun


\
 
 \ /
  Last update: 2011-08-25 23:57    [W:0.094 / U:0.188 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site