lkml.org 
[lkml]   [2003]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Race between vmtruncate and mapped areas?

--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.

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.

Dave

======================================================================
Dave McCracken IBM Linux Base Kernel Team 1-512-838-3059
dmccr@us.ibm.com T/L 678-3059

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.140 / U:0.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site