Do we need an opt-in for file systems use of hw atomic writes?

Christoph Hellwig hch at lst.de
Mon Jul 14 06:17:13 PDT 2025


Hi all,

I'm currently trying to sort out the nvme atomics limits mess, and
between that, the lack of a atomic write command in nvme, and the
overall degrading quality of cheap consumer nvme devices I'm starting
to free really uneasy about XFS using hardware atomics by default without
an explicit opt-in, as broken atomics implementations will lead to
really subtle data corruption.

Is is just me, or would it be a good idea to require an explicit
opt-in to user hardware atomics?



More information about the Linux-nvme mailing list