On Tue, 15 May 2001, Daniel Phillips wrote:
> That's because you left out his invalidate:
>
> * create an instance in pagecache
> * start reading into buffer cache (doesn't invalidate, right?)
> * start writing using pagecache (invalidate buffer copy)
Bzzert. You have a race here. Let's make it explicit:
start writing
put write request in queue
block on that
start reading into buffer cache
put read request into queue
read from media
write to media
And no, we can't invalidate from IO completion hook.
> * lose the page
> * try to read it (via pagecache)
>
> Everthing ok.
Nope.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Re: Getting FS access events Pavel Machek
- Re: Getting FS access events David S. Miller
- Re: Getting FS access events Alexander Viro
- Re: Getting FS access events Linus Torvalds
- Re: Getting FS access events Alexander Viro
- Re: Getting FS access events Richard Gooch
- Re: Getting FS access events Linus Torvalds
- Re: Getting FS access events Richard Gooch
- Re: Getting FS access events Alexander Viro
- Re: Getting FS access events Daniel Phillips
- Re: Getting FS access events Alexander Viro
- Re: Getting FS access events Daniel Phillips
- Re: Getting FS access events Linus Torvalds
- Re: Getting FS access events Anton Altaparmakov
- Re: Getting FS access events H. Peter Anvin
- Re: Getting FS access events Albert D. Cahalan
- Re: Getting FS access events H. Peter Anvin
- Re: Getting FS access events Anton Altaparmakov
- Re: Getting FS access events H. Peter Anvin
- Re: Getting FS access events Anton Altaparmakov
- Re: Getting FS access events H. Peter Anvin

