From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [PATCH 08 of 11] anon-vma-rwsem Date: Thu, 08 May 2008 09:28:38 +1000 Message-ID: <1210202918.1421.20.camel@pasglop> References: <6b384bb988786aa78ef0.1210170958@duo.random> <20080507212650.GA8276@duo.random> <20080507222205.GC8276@duo.random> <20080507153103.237ea5b6.akpm@linux-foundation.org> <20080507224406.GI8276@duo.random> Reply-To: benh@kernel.crashing.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: swise@opengridcomputing.com, avi@qumranet.com, linux-mm@kvack.org, hugh@veritas.com, npiggin@suse.de, kvm-devel@lists.sourceforge.net, rdreier@cisco.com, dada1@cosmosbay.com, general@lists.openfabrics.org, clameter@sgi.com, steiner@sgi.com, a.p.zijlstra@chello.nl, chrisw@redhat.com, marcelo@kvack.org, kanojsarcar@yahoo.com, linux-kernel@vger.kernel.org, paulmck@us.ibm.com, holt@sgi.com, Andrew Morton , torvalds@linux-foundation.org To: Andrea Arcangeli Return-path: In-Reply-To: <20080507224406.GI8276@duo.random> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org On Thu, 2008-05-08 at 00:44 +0200, Andrea Arcangeli wrote: > > Please note, we can't allow a thread to be in the middle of > zap_page_range while mmu_notifier_register runs. You said yourself that mmu_notifier_register can be as slow as you want ... what about you use stop_machine for it ? I'm not even joking here :-) > vmtruncate takes 1 single lock, the i_mmap_lock of the inode. Not more > than one lock and we've to still take the global-system-wide lock > _before_ this single i_mmap_lock and no other lock at all. Ben. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone