On Tue, Jun 28, 2016 at 04:27:03PM +0300, Boaz Harrosh wrote:
> Right. And an existing application can get DAX turned on under
> back, and will now suddently get different synchronization behavior.
> That is if it's writes happen to be aligned to the fs block size.
Is there an actual application that does that? or is this purely
theoretical right now?
Lots of them. The typical case is multithreaded (or preforked like old
apache) daemons that use O_APPEND to write to a common log file. Then
again those log records will usually not be 4k aligned, so they'd still
accidentally get the exclusive locking even without this patch. But
beware the case where a log record actually matches the alignment..
---end quoted text---