From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-la0-f45.google.com (mail-la0-f45.google.com [209.85.215.45]) by kanga.kvack.org (Postfix) with ESMTP id 0E9FC6B0080 for ; Wed, 5 Nov 2014 10:45:29 -0500 (EST) Received: by mail-la0-f45.google.com with SMTP id pn19so911336lab.32 for ; Wed, 05 Nov 2014 07:45:28 -0800 (PST) Received: from mx2.suse.de (cantor2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id y8si6930091laj.5.2014.11.05.07.45.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 07:45:27 -0800 (PST) Date: Wed, 5 Nov 2014 16:45:26 +0100 From: Michal Hocko Subject: Re: [PATCH 3/4] OOM, PM: OOM killed task shouldn't escape PM suspend Message-ID: <20141105154526.GG4527@dhcp22.suse.cz> References: <2156351.pWp6MNRoWm@vostro.rjw.lan> <20141021141159.GE9415@dhcp22.suse.cz> <4766859.KSKPTm3b0x@vostro.rjw.lan> <20141021142939.GG9415@dhcp22.suse.cz> <20141104192705.GA22163@htj.dyndns.org> <20141105124620.GB4527@dhcp22.suse.cz> <20141105130247.GA14386@htj.dyndns.org> <20141105133100.GC4527@dhcp22.suse.cz> <20141105134219.GD4527@dhcp22.suse.cz> <20141105141458.GE4527@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141105141458.GE4527@dhcp22.suse.cz> Sender: owner-linux-mm@kvack.org List-ID: To: Tejun Heo Cc: "Rafael J. Wysocki" , Andrew Morton , Cong Wang , David Rientjes , Oleg Nesterov , LKML , linux-mm@kvack.org, Linux PM list Ups, just noticed that I have a compile fix staged which didn't make it into git format-patch. Will repost after/if you are OK with this approach. But I guess this is much better outcome. Thanks for pushing Tejun! On Wed 05-11-14 15:14:58, Michal Hocko wrote: [...] > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > index 5340f6b91312..7fc75b4df837 100644 > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c [...] > @@ -615,6 +598,28 @@ void oom_zonelist_unlock(struct zonelist *zonelist, gfp_t gfp_mask) > spin_unlock(&zone_scan_lock); > } > > +static DECLARE_RWSEM(oom_sem); > + > +void oom_killer_disabled(void) Should be oom_killer_disable(void) -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org