Re: [PATCH 06/16] freezer: make exiting tasks properly unfreezable
From: Tejun Heo
Date:  Tue Aug 23 2011 - 15:45:06 EST
Hello,
On Tue, Aug 23, 2011 at 05:52:21PM +0200, Oleg Nesterov wrote:
> > @@ -915,6 +913,12 @@ NORET_TYPE void do_exit(long code)
> >
> >  	ptrace_event(PTRACE_EVENT_EXIT, code);
> >
> > +	/*
> > +	 * With ptrace notification done, there's no point in freezing from
> > +	 * here on.  Disallow freezing.
> > +	 */
> > +	current->flags |= PF_NOFREEZE;
> 
> OK, but what PF_NOFREEZE actually means?
> 
> Apart from "dont try to freeze" it means "no need to freeze", yes?
Yes.
> IOW, try_to_freeze_tasks() can succeed even if we have a lot of
> exitinig task which can make some activity, say, disk i/o. Is this
> correct?
Hmmm... can it cause disk IOs after that point?  I skimmed through and
couldn't spot one (the original code made simliar assumption albeit a
bit later).
Thanks.
-- 
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/