From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with ESMTP id 67D0F6B004F for ; Wed, 26 Aug 2009 18:00:26 -0400 (EDT) Received: from zps36.corp.google.com (zps36.corp.google.com [172.25.146.36]) by smtp-out.google.com with ESMTP id n7QM0LC9025780 for ; Wed, 26 Aug 2009 23:00:21 +0100 Received: from pxi33 (pxi33.prod.google.com [10.243.27.33]) by zps36.corp.google.com with ESMTP id n7QM0FD4022311 for ; Wed, 26 Aug 2009 15:00:16 -0700 Received: by pxi33 with SMTP id 33so543310pxi.11 for ; Wed, 26 Aug 2009 15:00:15 -0700 (PDT) Date: Wed, 26 Aug 2009 15:00:12 -0700 (PDT) From: David Rientjes Subject: Re: [PATCH 13/12] ksm: fix munlock during exit_mmap deadlock In-Reply-To: <20090826211400.GE14722@random.random> Message-ID: References: <20090825145832.GP14722@random.random> <20090825152217.GQ14722@random.random> <20090825181019.GT14722@random.random> <20090825194530.GU14722@random.random> <20090826194444.GB14722@random.random> <4A95A10C.5040008@redhat.com> <20090826211400.GE14722@random.random> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andrea Arcangeli Cc: Izik Eidus , Hugh Dickins , Rik van Riel , Chris Wright , Nick Piggin , Andrew Morton , "Justin M. Forbes" , linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Wed, 26 Aug 2009, Andrea Arcangeli wrote: > In oom deadlock terms madvise(UNMERGEABLE) is the only place that is > 100% fine at breaking KSM pages, because it runs with right tsk->mm > and page allocation will notice TIF_MEMDIE set on tsk. > Be aware that the page allocator in Linus' git will not notice TIF_MEMDIE for current if that task is chosen for oom kill since alloc_flags are not updated for that particular allocation. My patch in -mm, mm-update-alloc_flags-after-oom-killer-has-been-called.patch, fixes that but is not yet merged (I assume it's on hold for 2.6.32?). I'd hate for you to run into this in testing and spend time debugging it when the problem already has a fix. -- 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