mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daejun Park <daejun7.park@samsung.com>
To: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>,
	"linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>,
	Dave Chinner <david@fromorbit.com>,
	"Darrick J. Wong" <djwong@kernel.org>,
	Amir Goldstein <amir73il@gmail.com>,
	Brian Foster <bfoster@redhat.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Daejun Park <daejun7.park@samsung.com>
Subject: RE:(2) [PATCH v2 2/2] xfs: skip the fsync flush when a later flush has completed
Date: Tue, 24 Nov 2026 11:39:30 +0900	[thread overview]
Message-ID: <20261124023930epcms2p76ee61d14c5333dd04b4466b9f11bbcf8@epcms2p7> (raw)
In-Reply-To: <20261120181706.GB1954@lst.de>

On Fri, Nov 20, 2026 at 07:17:06PM +0100, Christoph Hellwig wrote:
> On Wed, Nov 11, 2026 at 12:17:12PM +0900, Daejun Park via B4 Relay wrote:
[...]
> > With an internal log, an fsync that takes the new skip can miss a
> > failed flush on bio-based dm. dm drops the error of a preflush sent
> > with data, unless the table is linear or stripe on a single device.
[...]
> I think you've fixed this bug in dm in the meantime, right?

Yes, commit e92cd41e8e5e ("dm: fail a REQ_PREFLUSH bio with data when
its preflush fails") in v7.4-rc3.

[...]
> > +	 * 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.

v3 drops the IS_DAX() check in xfs_file_fsync().

Best regards,
Daejun

  parent reply	other threads:[~2026-11-24  2:39 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-11  3:17 [PATCH v2 0/2] xfs: skip redundant fsync cache flushes Daejun Park via B4 Relay
2026-11-11  3:17 ` [PATCH v2 1/2] xfs: number the cache flushes submitted to each buftarg Daejun Park via B4 Relay
2026-11-11 14:22   ` Brian Foster
2026-11-20 18:14   ` Christoph Hellwig
     [not found]   ` <CGME20261120181433epcas2p26ece3eeb06a9aef1612ea1f4f13238a9@epcms2p7>
2026-11-24  2:38     ` Daejun Park
2026-11-11  3:17 ` [PATCH v2 2/2] xfs: skip the fsync flush when a later flush has completed Daejun Park via B4 Relay
2026-11-11 14:22   ` Brian Foster
     [not found]   ` <CGME20261111142234epcas2p48d80bde0c65d09a2fd8bdfdc9bdd2b1f@epcms2p6>
2026-11-12  2:39     ` Daejun Park
2026-11-20 18:17   ` Christoph Hellwig
     [not found]   ` <CGME20261120181715epcas2p3fe7b223290792dc835b5dff5374b2cbc@epcms2p7>
2026-11-24  2:39     ` Daejun Park [this message]
2026-11-11  6:47 ` [PATCH v2 0/2] xfs: skip redundant fsync cache flushes Dave Chinner
     [not found] ` <CGME20261111064724epcas2p11498de70e50f2fbf4e21d5e7a723e01d@epcms2p5>
2026-11-17  2:33   ` Daejun Park

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261124023930epcms2p76ee61d14c5333dd04b4466b9f11bbcf8@epcms2p7 \
    --to=daejun7.park@samsung.com \
    --cc=amir73il@gmail.com \
    --cc=bfoster@redhat.com \
    --cc=cem@kernel.org \
    --cc=david@fromorbit.com \
    --cc=djwong@kernel.org \
    --cc=hch@lst.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®