Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 18 Feb 2002 20:54:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 18 Feb 2002 20:54:16 -0500 Received: from garrincha.netbank.com.br ([200.203.199.88]:27665 "HELO netbank.com.br") by vger.kernel.org with SMTP id ; Mon, 18 Feb 2002 20:54:06 -0500 Date: Mon, 18 Feb 2002 22:53:45 -0300 (BRT) From: Rik van Riel X-X-Sender: To: Linus Torvalds Cc: Daniel Phillips , Hugh Dickins , , Kernel Mailing List , , Robert Love , , Andrew Morton , , Subject: Re: [RFC] Page table sharing In-Reply-To: Message-ID: X-spambait: aardvark@kernelnewbies.org X-spammeplease: aardvark@nl.linux.org MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Feb 2002, Linus Torvalds wrote: > On Mon, 18 Feb 2002, Rik van Riel wrote: > > > > We'll need protection from the swapout code. > > Absolutely NOT. > > If the swapout code unshares or shares the PMD, that's a major bug. > > The swapout code doesn't need to know one way or the other, because the > swapout code never actually touches the pmd itself, it just follows the > pointers - it doesn't ever need to worry about the pmd counts at all. The swapout code can remove a page from the page table while another process is in the process of unsharing the page table. We really want to make sure that the copied-over page table doesn't point to a page which just got swapped out. regards, Rik -- "Linux holds advantages over the single-vendor commercial OS" -- Microsoft's "Competing with Linux" document http://www.surriel.com/ http://distro.conectiva.com/ - 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/