From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx119.postini.com [74.125.245.119]) by kanga.kvack.org (Postfix) with SMTP id 9EEAD6B0062 for ; Sun, 2 Dec 2012 10:12:38 -0500 (EST) Received: by mail-ea0-f169.google.com with SMTP id a12so1026875eaa.14 for ; Sun, 02 Dec 2012 07:12:37 -0800 (PST) Date: Sun, 2 Dec 2012 16:12:32 +0100 From: Ingo Molnar Subject: [PATCH 2/2, v2] mm/migration: Make rmap_walk_anon() and try_to_unmap_anon() more scalable Message-ID: <20121202151232.GB12911@gmail.com> References: <1354305521-11583-1-git-send-email-mingo@kernel.org> <20121201094927.GA12366@gmail.com> <20121201122649.GA20322@gmail.com> <20121201184135.GA32449@gmail.com> <20121201201538.GB2704@gmail.com> <50BA69B7.30002@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50BA69B7.30002@redhat.com> Sender: owner-linux-mm@kvack.org List-ID: To: Rik van Riel Cc: Linus Torvalds , Linux Kernel Mailing List , linux-mm , Peter Zijlstra , Paul Turner , Lee Schermerhorn , Christoph Lameter , Mel Gorman , Andrew Morton , Andrea Arcangeli , Thomas Gleixner , Johannes Weiner , Hugh Dickins * Rik van Riel wrote: > >+static inline void anon_vma_lock_read(struct anon_vma *anon_vma) > >+{ > >+ down_read(&anon_vma->root->rwsem); > >+} > > I see you did not rename anon_vma_lock and anon_vma_unlock to > anon_vma_lock_write and anon_vma_unlock_write. > > That could get confusing to people touching that code in the > future. Agreed, doing that rename makes perfect sense - I've done that in the v2 version attached below. Thanks, Ingo ----------------------->