[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140816122028.GC9305@htj.dyndns.org>
Date: Sat, 16 Aug 2014 08:20:28 -0400
From: Tejun Heo <tj@...nel.org>
To: Cong Wang <xiyou.wangcong@...il.com>
Cc: linux-kernel@...r.kernel.org, David Rientjes <rientjes@...gle.com>,
Michal Hocko <mhocko@...e.cz>,
"Rafael J. Wysocki" <rjw@...ysocki.net>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [Patch v3 1/2] freezer: check OOM kill while being frozen
On Thu, Aug 14, 2014 at 02:15:25PM -0700, Cong Wang wrote:
> +static bool should_thaw_current(bool check_kthr_stop)
> +{
> + if (!freezing(current) ||
> + (check_kthr_stop && kthread_should_stop()) ||
> + test_thread_flag(TIF_MEMDIE))
> + return true;
> + else
> + return false;
> +}
I'm not sure this is safe w.r.t. hibernation. Please cc Rafael on
freezer related changes.
Thanks.
--
tejun
--
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