From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx190.postini.com [74.125.245.190]) by kanga.kvack.org (Postfix) with SMTP id B9F1C6B005A for ; Tue, 8 Jan 2013 11:52:35 -0500 (EST) Received: by mail-vc0-f181.google.com with SMTP id gb30so596757vcb.40 for ; Tue, 08 Jan 2013 08:52:34 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <20130108163141.GA27555@shutemov.name> References: <20130105152208.GA3386@redhat.com> <20130108163141.GA27555@shutemov.name> From: Linus Torvalds Date: Tue, 8 Jan 2013 08:52:14 -0800 Message-ID: Subject: Re: oops in copy_page_rep() Content-Type: text/plain; charset=ISO-8859-1 Sender: owner-linux-mm@kvack.org List-ID: To: "Kirill A. Shutemov" Cc: Hillf Danton , Hugh Dickins , Dave Jones , Linux Kernel , Andrea Arcangeli , Andrew Morton , Mel Gorman , Linux-MM , Rik van Riel On Tue, Jan 8, 2013 at 8:31 AM, Kirill A. Shutemov wrote: >> >> Heh. I was more thinking about why do_huge_pmd_wp_page() needs it, but >> do_huge_pmd_numa_page() does not. > > It does. The check should be moved up. > >> Also, do we actually need it for huge_pmd_set_accessed()? The >> *placement* of that thing confuses me. And because it confuses me, I'd >> like to understand it. > > We need it for huge_pmd_set_accessed() too. > > Looks like a mis-merge. The original patch for huge_pmd_set_accessed() was > correct: http://lkml.org/lkml/2012/10/25/402 Not a merge error: the pmd_trans_splitting() check was removed by commit d10e63f29488 ("mm: numa: Create basic numa page hinting infrastructure"). Now, *why* it was removed, I can't tell. And it's not clear why the original code just had it in a conditional, while the suggested patch has that "goto repeat" thing. I suspect re-trying the fault (which I assume the original code did) is actually better, because that way you go through all the "should I reschedule as I return through the exception" stuff. I dunno. Mel, that original patch came from you , although it was based on previous work by Peter/Ingo/Andrea. Can you walk us through the history and thinking about the loss of pmd_trans_splitting(). Was it purely a mistake? It looks intentional. Linus -- 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