From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751979AbaJPVwu (ORCPT ); Thu, 16 Oct 2014 17:52:50 -0400 Received: from mail-oi0-f52.google.com ([209.85.218.52]:53674 "EHLO mail-oi0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751254AbaJPVwt (ORCPT ); Thu, 16 Oct 2014 17:52:49 -0400 MIME-Version: 1.0 In-Reply-To: <20141016213512.GA28099@redhat.com> References: <20141016203954.GA26336@redhat.com> <20141016211136.GA27468@redhat.com> <20141016213512.GA28099@redhat.com> Date: Thu, 16 Oct 2014 14:52:48 -0700 Message-ID: Subject: Re: + freezer-check-oom-kill-while-being-frozen.patch added to -mm tree From: Cong Wang To: Oleg Nesterov Cc: Michal Hocko , David Rientjes , "Rafael J. Wysocki" , Tejun Heo , Andrew Morton , LKML Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 16, 2014 at 2:35 PM, Oleg Nesterov wrote: > > If a task B is already frozen, it sleeps in D state. > > If OOM selects B as a victim after that, it won't be woken by > SIGKILL, thus it obviously can't call should_thaw_current() and > notice TIF_MEMDIE. I see your point now, it would be more clear if you can just quote the patch instead of changelog. So are you saying the loop in __refrigerator() is useless? Since it will always stay in asleep after schedule()? > > Btw, I also do not understand the cgroup_freezing() check in > should_thaw_current(), but this is another story. > I hate to repeat the previous discussion. Maybe you can just follow the link I gave to you? :) Thanks.