Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263791AbTEMXRA (ORCPT ); Tue, 13 May 2003 19:17:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263792AbTEMXQ7 (ORCPT ); Tue, 13 May 2003 19:16:59 -0400 Received: from holomorphy.com ([66.224.33.161]:19902 "EHLO holomorphy") by vger.kernel.org with ESMTP id S263791AbTEMXQ4 (ORCPT ); Tue, 13 May 2003 19:16:56 -0400 Date: Tue, 13 May 2003 16:29:30 -0700 From: William Lee Irwin III To: Dave McCracken Cc: Mika Penttil? , Linux Memory Management , Linux Kernel Subject: Re: Race between vmtruncate and mapped areas? Message-ID: <20030513232930.GD8978@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Dave McCracken , Mika Penttil? , Linux Memory Management , Linux Kernel References: <154080000.1052858685@baldur.austin.ibm.com> <3EC15C6D.1040403@kolumbus.fi> <199610000.1052864784@baldur.austin.ibm.com> <20030513224929.GX8978@holomorphy.com> <220550000.1052866808@baldur.austin.ibm.com> <20030513231139.GZ8978@holomorphy.com> <247390000.1052867776@baldur.austin.ibm.com> <20030513232038.GB8978@holomorphy.com> <266860000.1052868500@baldur.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <266860000.1052868500@baldur.austin.ibm.com> Organization: The Domain of Holomorphy User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 800 Lines: 19 On Tuesday, May 13, 2003 16:20:38 -0700 William Lee Irwin III wrote: >> The mmap_sem works because then ->i_size can't be sampled by >> filemap_nopage() before the pagetable wiping operation starts. On Tue, May 13, 2003 at 06:28:20PM -0500, Dave McCracken wrote: > So why isn't that the right way to do it? Waiting for mmap_sem guarantees > we won't catch a page fault in flight, which is the cause of the problem in > the first place. Oh it works fine, it's just the explanation for why it's sufficient I was looking for. -- wli - 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/