From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by kanga.kvack.org (Postfix) with ESMTP id EBB176B0069 for ; Sun, 5 Oct 2014 13:15:55 -0400 (EDT) Received: by mail-vc0-f169.google.com with SMTP id hy4so2375093vcb.28 for ; Sun, 05 Oct 2014 10:15:55 -0700 (PDT) Received: from mail-vc0-x22d.google.com (mail-vc0-x22d.google.com [2607:f8b0:400c:c03::22d]) by mx.google.com with ESMTPS id r9si6952680vcx.105.2014.10.05.10.15.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 05 Oct 2014 10:15:54 -0700 (PDT) Received: by mail-vc0-f173.google.com with SMTP id ij19so2322917vcb.4 for ; Sun, 05 Oct 2014 10:15:54 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Sun, 5 Oct 2014 10:15:53 -0700 Message-ID: Subject: Re: [patch for-3.17] mm, thp: fix collapsing of hugepages on madvise From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Andrew Morton , "Kirill A. Shutemov" , Andrea Arcangeli , Suleiman Souhlal , stable , Linux Kernel Mailing List , linux-mm On Sat, Oct 4, 2014 at 7:48 PM, David Rientjes wrote: > > This occurs because the madvise(2) handler for thp, hugepage_advise(), > clears VM_NOHUGEPAGE on the stack and it isn't stored in vma->vm_flags > until the final action of madvise_behavior(). This causes the > khugepaged_enter_vma_merge() to be a no-op in hugepage_advise() when the > vma had previously had VM_NOHUGEPAGE set. So color me confused, and when I'm confused I don't apply patches. But there's no "hugepage_advise()" in my source tree, and quite frankly, I also don't like how you now separately pass in vm_flags that always *should* be the same as vma->vm_flags. Maybe this is against -mm, but it's marked for stable and sent to me, so I'm piping up about my lack of applying this. 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