Re: Race between vmtruncate and mapped areas?

From: William Lee Irwin III (wli@holomorphy.com)
Date: Tue May 13 2003 - 18:29:30 EST


On Tuesday, May 13, 2003 16:20:38 -0700 William Lee Irwin III <wli@holomorphy.com> 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/



This archive was generated by hypermail 2b29 : Thu May 15 2003 - 22:00:49 EST