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 C9D6882998 for ; Tue, 6 May 2014 10:57:03 -0400 (EDT) Received: by mail-vc0-f169.google.com with SMTP id ij19so1131313vcb.0 for ; Tue, 06 May 2014 07:57:03 -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 dz10si2366487vcb.87.2014.05.06.07.57.02 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 May 2014 07:57:03 -0700 (PDT) Received: by mail-vc0-f173.google.com with SMTP id il7so871763vcb.4 for ; Tue, 06 May 2014 07:57:02 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20140506102925.GD11096@twins.programming.kicks-ass.net> References: <1399038730-25641-1-git-send-email-j.glisse@gmail.com> <20140506102925.GD11096@twins.programming.kicks-ass.net> Date: Tue, 6 May 2014 07:57:02 -0700 Message-ID: Subject: Re: [RFC] Heterogeneous memory management (mirror process address space on a device mmu). From: Linus Torvalds Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra Cc: j.glisse@gmail.com, linux-mm , Linux Kernel Mailing List , linux-fsdevel , Mel Gorman , "H. Peter Anvin" , Andrew Morton , Linda Wang , Kevin E Martin , Jerome Glisse , Andrea Arcangeli , Johannes Weiner , Larry Woodman , Rik van Riel , Dave Airlie , Jeff Law , Brendan Conoboy , Joe Donohue , Duncan Poole , Sherry Cheung , Subhash Gutti , John Hubbard , Mark Hairgrove , Lucien Dunning , Cameron Buschardt , Arvind Gopalakrishnan , Haggai Eran , Or Gerlitz , Sagi Grimberg , Shachar Raindel , Liran Liss , Roland Dreier , "Sander, Ben" , "Stoner, Greg" , "Bridgman, John" , "Mantor, Michael" , "Blinzer, Paul" , "Morichetti, Laurent" , "Deucher, Alexander" , "Gabbay, Oded" , Davidlohr Bueso On Tue, May 6, 2014 at 3:29 AM, Peter Zijlstra wrote: > > So you forgot to CC Linus, Linus has expressed some dislike for > preemptible mmu_notifiers in the recent past: Indeed. I think we *really* should change that anonvma rwsem into an rwlock. We had performance numbers that showed it needs to be done. The *last* thing we want is to have random callbacks that can block in this critical region. So now I think making it an rwlock is a good idea just to make sure that never happens. Seriously, the mmu_notifiers were misdesigned to begin with, and much too deep. We're not screwing up the VM any more because of them. 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