Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764638AbYA3TIq (ORCPT ); Wed, 30 Jan 2008 14:08:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764293AbYA3TIQ (ORCPT ); Wed, 30 Jan 2008 14:08:16 -0500 Received: from relay2.sgi.com ([192.48.171.30]:45949 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1764283AbYA3TIP (ORCPT ); Wed, 30 Jan 2008 14:08:15 -0500 Date: Wed, 30 Jan 2008 11:08:13 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Robin Holt cc: Andrea Arcangeli , Avi Kivity , Izik Eidus , Nick Piggin , kvm-devel@lists.sourceforge.net, Benjamin Herrenschmidt , Peter Zijlstra , steiner@sgi.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org, daniel.blueman@quadrics.com, Hugh Dickins Subject: Re: [patch 1/6] mmu_notifier: Core code In-Reply-To: <20080130180207.GU26420@sgi.com> Message-ID: References: <20080130022909.677301714@sgi.com> <20080130022944.236370194@sgi.com> <20080130180207.GU26420@sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 964 Lines: 26 On Wed, 30 Jan 2008, Robin Holt wrote: > Index: git-linus/mm/mmu_notifier.c > =================================================================== > --- git-linus.orig/mm/mmu_notifier.c 2008-01-30 11:43:45.000000000 -0600 > +++ git-linus/mm/mmu_notifier.c 2008-01-30 11:56:08.000000000 -0600 > @@ -99,3 +99,8 @@ void mmu_rmap_notifier_unregister(struct > } > EXPORT_SYMBOL(mmu_rmap_notifier_unregister); > > +void mmu_rmap_export_page(struct page *page) > +{ > + SetPageExternalRmap(page); > +} > +EXPORT_SYMBOL(mmu_rmap_export_page); Then mmu_rmap_export_page would have to be called before the subsystem establishes the rmap entry for the page. Could we do all PageExternalRmap modifications under Pagelock? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/