Re: [PATCH] clear PageError bit in msync & fsync

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Rik van Riel
Date: Tuesday, November 9, 2010 - 2:15 pm

On 11/09/2010 04:07 PM, Ted Ts'o wrote:

There is no such guarantee in the current kernel, either
with or without my patch.

A third application calling fsync or msync can get the
EIO cleared, so the application that did the write does
not see it.

The VM could also reclaim the PageError page due to
memory pressure, so the application calling fsync or
msync does not see it.

I see no good way in which we could guarantee that
every process calling msync or fsync on a file that
had an IO error in the past gets EIO once - at least,
not without every one of them always getting EIO on
the file even after the IO path is good again...

-- 
All rights reversed
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] clear PageError bit in msync & fsync, Jeff Layton, (Tue Nov 9, 12:21 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Tue Nov 9, 12:33 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Tue Nov 9, 2:15 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Tue Nov 9, 2:24 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Andrew Morton, (Tue Nov 9, 2:41 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Thu Nov 11, 9:31 am)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Thu Nov 11, 9:36 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Jeff Layton, (Fri Nov 12, 8:52 am)
Re: [PATCH] clear PageError bit in msync & fsync, Rik van Riel, (Fri Nov 12, 10:04 am)
Re: [PATCH] clear PageError bit in msync & fsync, Eric Sandeen, (Fri Nov 12, 1:51 pm)
Re: [PATCH] clear PageError bit in msync & fsync, Jeff Layton, (Fri Nov 12, 2:36 pm)