[$] Atomic writes without tears

Post Syndicated from jake original https://lwn.net/Articles/974578/

John Garry and Ted Ts’o led a discussion about supporting atomic writes for buffered
I/O, without any torn (or partial) writes to the device, at the 2024 Linux Storage,
Filesystem, Memory Management, and BPF Summit
. It is something of a
continuation of a discussion at last year’s
summit
. The goal is to help PostgreSQL, which writes its data using
16KB buffered I/O; it currently has to do a lot of extra work to ensure
that its data is safe on disk. A promise of non-torn, 16KB buffered writes
would allow the database
to avoid doing double writes.