Re: (2) [PATCH v2 2/2] xfs: skip the fsync flush when a later flush has completed

From: Christoph Hellwig

Date: Wed Nov 25 2026 - 01:22:01 EST


On Tue, Nov 24, 2026 at 11:39:30AM +0900, Daejun Park wrote:
> > > + * DAX writes are not block I/O, so DAX only skips the flush when
> > > + * this log force flushed, as before.
> >
> > I don't get the DAX part. As far as cache flushes are concerned we
> > don't special case DAX anywhere else, why here?
>
> I was not sure that a flush issued by another CPU covers DAX data on
> powerpc, so I kept the old behaviour for DAX. I never verified that.
> The existing log_flushed skip may already rely on such a flush.

Yeah, if that is an issue on powerpc, xfs and others alredy hit it.
Adding the author and maintainer who signed off on PAPR SCM to clarify
if this is an issue. Although if it is it probably needs to be worked
around in the driver.