Re: mmap behavior on out-of-space conditions

From: Andrew Morton
Date: Thu Aug 02 2007 - 14:53:32 EST


On Thu, 2 Aug 2007 15:18:33 +0200
"Guillaume Chazarain" <guichaz@xxxxxxxx> wrote:

> 2007/8/2, Peter Zijlstra <peterz@xxxxxxxxxxxxx>:
>
> > I think Dave's block_page_mkwrite() stuff addresses this as well, no?
> >
> > http://lkml.org/lkml/2007/3/18/198
>
> I saw a similar problem some time ago with msync:
> http://lkml.org/lkml/2006/12/29/136 but Andrew didn't
> like my patch.
>

Yeah, we need to get that finished off.

The current _design_ of the VM/VFS is such that if the application runs
fsync() or msync() then it will be able to reliably detect any data loss
which has occurred, even if that data loss occurred during a random pageout
attempt by some other process half an hour ago.

However Guillaume has identified some holes in the implementation (I don't
recall the details, but that link is a start).

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/