[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Tue, 9 Sep 2014 17:16:55 +0200
From: Michal Hocko <mhocko@...e.cz>
To: Tejun Heo <tj@...nel.org>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Cong Wang <xiyou.wangcong@...il.com>,
LKML <linux-kernel@...r.kernel.org>,
David Rientjes <rientjes@...gle.com>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [Patch v4 1/2] freezer: check OOM kill while being frozen
On Tue 09-09-14 07:50:12, Tejun Heo wrote:
> Hello,
>
> On Tue, Sep 09, 2014 at 12:48:28AM +0200, Rafael J. Wysocki wrote:
> > Well, not exactly from anywhere. Just from where try_to_freeze() is called
> > I suppose?
>
> Yeap, anywhere try_to_freeze() may be called.
>
> > Which means that if this is a user space task, it won't to a lot before dying,
> > will it?
>
> Userland tasks aren't likely to a lot of damages before dying but then
> again there's no guarantee. As it currently stands, try_to_freeze()
> can be anywhere.
But OOM killer doesn't kill kernel threads as they do not own any
memory. So the check should be safe, no?
--
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists