Linux XFS filesystem development
 help / color / mirror / Atom feed
From: Dave Chinner <dgc@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Carlos Maiolino <cem@kernel.org>, linux-xfs@vger.kernel.org
Subject: Re: handle ophdr formatting entirely in xlog_write
Date: Thu, 26 Nov 2026 07:18:39 +1100	[thread overview]
Message-ID: <awdCn4ByxYZSWE9E@dread> (raw)
In-Reply-To: <20261125144430.728485-1-hch@lst.de>

On Wed, Nov 25, 2026 at 03:42:21PM +0100, Christoph Hellwig wrote:
> Hi all,
> 
> for historic reasons, generating of the log ophdrs is split over the log
> item formatting and the core log write in somewhat awkward ways.  This
> less to subtle extra code, extra (small) memory usage for keeping the
> headers in memory when they are not needed.  This series refactors
> the log vec formatting a bit and the xlog_write code a lot so that the
> ophdrs are formatted when writing to the iclog, and the no memory
> for the ophdrs is allocated for logvecs in the CIL.

I don't have the capacity to review this any time soon.

Given all the issues we're still finding and having to fix from LLM
analysis, I'm not a great fan of doing open-heart surgery to the
core journal write path right now. This is not simple code, and
without proper on-disk journal format verification, we've never
really had a way of rigourously testing journal write path reworks.

These sorts of changes have always been a bit of a 'merge and hope'
process because 'test it with log stress' via fstests doesn't
actually verify that what has been written to the journal has been
recovered correctly. It just tests that recovery completes with
error, and the lack of errors used to imply 'the code is good'.

I don't think that's good enough anymore. In this new world of
journal fuzzing and LLM bug finding, we really need much
more rigourous verification of what gets written to the journal
before we start making fundamental changes to the way we track and
write formatted log items into the journal. That way the log stress
tests we currently have will formally verify that the contents
of the journal being recovered are valid, and that we haven't
introduced some subtle weird bug that will bite us in the future.

So, can we hold off making runtime infrastructure changes to the
journal write path until after we land the recovery time on-disk
journal format verification?

-Dave.
-- 
Dave Chinner
dgc@kernel.org

      parent reply	other threads:[~2026-11-25 20:18 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 14:42 handle ophdr formatting entirely in xlog_write Christoph Hellwig
2026-11-25 14:42 ` [PATCH 01/15] xfs: don't bother setting oh_tid in callers of xlog_write Christoph Hellwig
2026-11-25 14:42 ` [PATCH 02/15] xfs: always set oh_len in xlog_write Christoph Hellwig
2026-11-25 14:42 ` [PATCH 03/15] xfs: refactor the continuation loop in xlog_write_partial Christoph Hellwig
2026-11-25 14:42 ` [PATCH 04/15] xfs: factor out a xlog_write_ophdr helper Christoph Hellwig
2026-11-25 14:42 ` [PATCH 05/15] xfs: factor out a xlog_write_cont_ophdr helper Christoph Hellwig
2026-11-25 14:42 ` [PATCH 06/15] xfs: factor out a xlog_write_region helper Christoph Hellwig
2026-11-25 14:42 ` [PATCH 07/15] xfs: remove xlog_write_{partial,full} Christoph Hellwig
2026-11-25 14:42 ` [PATCH 08/15] xfs: build the entire ophdr in xlog_write_ophdr Christoph Hellwig
2026-11-25 14:42 ` [PATCH 09/15] xfs: directly format ophdrs into the iclog Christoph Hellwig
2026-11-25 14:42 ` [PATCH 10/15] xfs: make the i_len field in xfs_log_iovec an uint32_t Christoph Hellwig
2026-11-25 14:42 ` [PATCH 11/15] xfs: improve an assert in xlog_format_commit Christoph Hellwig
2026-11-25 14:42 ` [PATCH 12/15] xfs: remove the lv_bytes field from struct xfs_log_vec Christoph Hellwig
2026-11-25 14:42 ` [PATCH 13/15] xfs: create ophdrs on the fly in xlog_write Christoph Hellwig
2026-11-25 14:42 ` [PATCH 14/15] xfs: move building the checkpoint header into xlog_cil_write_chain Christoph Hellwig
2026-11-25 14:42 ` [PATCH 15/15] xfs: cleanup log vec used tracking Christoph Hellwig
2026-11-25 20:18 ` Dave Chinner [this message]

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=awdCn4ByxYZSWE9E@dread \
    --to=dgc@kernel.org \
    --cc=cem@kernel.org \
    --cc=hch@lst.de \
    --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