From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753031AbaJPUx3 (ORCPT ); Thu, 16 Oct 2014 16:53:29 -0400 Received: from mail-ob0-f173.google.com ([209.85.214.173]:65018 "EHLO mail-ob0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751907AbaJPUx2 (ORCPT ); Thu, 16 Oct 2014 16:53:28 -0400 MIME-Version: 1.0 In-Reply-To: <20141016203954.GA26336@redhat.com> References: <20141016203954.GA26336@redhat.com> Date: Thu, 16 Oct 2014 13:53:28 -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 1:39 PM, Oleg Nesterov wrote: >> Fix the issue by checking for TIF_MEMDIE thread flag and get away from the >> fridge if it is set. oom_scan_process_thread doesn't have to check for >> the frozen task anymore because do_send_sig_info will wake up the thread >> and TIF_MEMDIE is already set by that time. > > I must have missed something... but __refrigerator() sleeps in > TASK_UNINTERRUPTIBLE and do_send_sig_info() won't wake it up? > This is exactly what we are trying to fix. Make sure you read the patch as well before reply? Otherwise, I must have missed your point. :)