From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754078Ab0DIDfl (ORCPT ); Thu, 8 Apr 2010 23:35:41 -0400 Received: from cantor.suse.de ([195.135.220.2]:53747 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753362Ab0DIDfj (ORCPT ); Thu, 8 Apr 2010 23:35:39 -0400 Date: Fri, 9 Apr 2010 13:35:32 +1000 From: Nick Piggin To: Peter Zijlstra Cc: Andrea Arcangeli , Avi Kivity , Thomas Gleixner , Rik van Riel , Ingo Molnar , akpm@linux-foundation.org, Linus Torvalds , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Benjamin Herrenschmidt , David Miller , Hugh Dickins , Mel Gorman Subject: Re: [PATCH 09/13] mm, powerpc: Move the RCU page-table freeing into generic code Message-ID: <20100409033532.GI5683@laptop> References: <20100408191737.296180458@chello.nl> <20100408192722.987227219@chello.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100408192722.987227219@chello.nl> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 08, 2010 at 09:17:46PM +0200, Peter Zijlstra wrote: > Index: linux-2.6/include/asm-generic/tlb.h > =================================================================== > --- linux-2.6.orig/include/asm-generic/tlb.h > +++ linux-2.6/include/asm-generic/tlb.h > @@ -27,6 +27,49 @@ > #define tlb_fast_mode(tlb) 1 > #endif > > +#ifdef HAVE_ARCH_RCU_TABLE_FREE > +/* > + * Semi RCU freeing of the page directories. > + * > + * This is needed by some architectures to implement gup_fast(). Really? I see the comment in the powerpc code, but powerpc was already using RCU before gup_fast(), and AFAIKS it is indeed using it so that it can handle faults by getting the linux pte with find_linux_pte ? I would have thought this should be a well used method for handling software TLB faults. But anyway this looks like a nice abstraction.