[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140905140815.GA10455@mtj.dyndns.org>
Date: Fri, 5 Sep 2014 23:08:15 +0900
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 v4 1/2] freezer: check OOM kill while being frozen
Hello,
On Thu, Sep 04, 2014 at 03:30:41PM -0700, Cong Wang wrote:
...
> Cc: David Rientjes <rientjes@...gle.com>
> Cc: Michal Hocko <mhocko@...e.cz>
> Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>
> Cc: Tejun Heo <tj@...nel.org>
> Cc: Andrew Morton <akpm@...ux-foundation.org>
> Acked-by: Michal Hocko <mhocko@...e.cz>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Prolly should stable@...r.kernel.org?
> +static bool should_thaw_current(bool check_kthr_stop)
> +{
> + if (!freezing(current))
> + return true;
> +
> + if (check_kthr_stop && kthread_should_stop())
> + return true;
> +
> + /* It might not be safe to check TIF_MEMDIE for pm freeze. */
This is just another representation of the following code which isn't
particularly useful. Wouldn't it be better if the comment actually
explains why this might not be safe?
> + if (cgroup_freezing(current) && test_thread_flag(TIF_MEMDIE))
> + return true;
> +
> + return false;
> +}
Other than that,
Acked-by: Tejun Heo <tj@...nel.org>
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