Thread (47 messages) 47 messages, 7 authors, 2003-05-17

Re: Race between vmtruncate and mapped areas?

From: William Lee Irwin III <hidden>
Date: 2003-05-13 23:17:00
Also in: lkml

On Tuesday, May 13, 2003 16:20:38 -0700 William Lee Irwin III [off-list ref] wrote:
quoted
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, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help