Async I/O
Async I/O
Posted Apr 8, 2009 5:02 UTC (Wed) by butlerm (subscriber, #13312)In reply to: Async I/O by jamesh
Parent article: Linux Storage and Filesystem workshop, day 1
I need to read more carefully. Jamesh is exactly right with regard to the
problems of the solution suggested by the parent poster, namely delaying
the rename until after the aio_fsync has completed. Aside from the
complexity and overhead issues, it has completely different user visible
semantics. That is fine if no other process needs to read the new version
of the file in the meantime, otherwise it is problematic. fbarrier would
be a much cleaner solution.
problems of the solution suggested by the parent poster, namely delaying
the rename until after the aio_fsync has completed. Aside from the
complexity and overhead issues, it has completely different user visible
semantics. That is fine if no other process needs to read the new version
of the file in the meantime, otherwise it is problematic. fbarrier would
be a much cleaner solution.
