Re: What happened to data=guarded?

From: Bernd Eckenfels
Date: Tue Aug 11 2009 - 18:44:36 EST


In article <20090810164205.GC1505@xxxxxx> you wrote:
>> What sort of files were you losing? I don't know if we can improve
>> the implied flush hueristics, but we should at least try to see if we
>> do something about it.
>
> IIRC... the flush heuristics invoke async flush, so you can still lose
> data if you are unlucky, no?

BTW: one good heuristic would be to flush() files on close async but if the
file is renamed fush it sync before the rename. The typical close temp file
and rename it would work without a fdatasync().

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