Linux EXT4 FS development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: guolingxing <guolingxing@tju.edu.cn>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH v2 2/2] ext4: check return value of blkdev_issue_flush() when starting a fast commit
Date: Tue, 13 Oct 2026 08:34:26 +0000	[thread overview]
Message-ID: <sashiko-outbox-169259@kernel.org> (raw)
In-Reply-To: <20261013082331.2089623-3-guolingxing@tju.edu.cn>

> When the file system device differs from the journal device, a cache
> flush is issued on the file system device before fast commit blocks
> are written, but the return value is ignored.  If the cache flush
> fails, the fast commit blocks are written and the fast commit
> completes anyway, even though the updates covered by the preceding
> transactions may not be on stable storage yet, so the fast commit may
> provide guarantees it cannot keep.
> 
> Check the return value of blkdev_issue_flush() and abort the fast
> commit if the cache flush fails.  ext4_fc_commit() will then fall back
> to a full journal commit, so the caller still gets the expected
> durability guarantees.
> 
> Since a cache flush failure now aborts the fast commit, also issue
> the flush only when the journal barrier option is enabled, consistent
> with the file system device flush issued during a full journal commit
> and with the fast commit tail block flush.  This keeps file systems
> mounted with nobarrier working on devices with failing cache flushes.
> 
> Fixes: da0c5d2695265 ("ext4: issue fsdev cache flush before starting fast commit")
> Cc: stable@vger.kernel.org
> Signed-off-by: guolingxing <guolingxing@tju.edu.cn>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261013082331.2089623-1-guolingxing@tju.edu.cn?part=2


      reply	other threads:[~2026-10-13  8:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-13  6:26 [PATCH 1/3] ext4: check return value of blkdev_issue_flush() when initializing inode tables guolingxing
2026-10-13  6:26 ` [PATCH 2/3] ext4: check return value of blkdev_issue_flush() when starting a fast commit guolingxing
2026-10-13  6:42   ` sashiko-bot
2026-10-13  6:26 ` [PATCH 3/3] ext4: check return value of blkdev_issue_flush() when replaying fast commits guolingxing
2026-10-13  6:36   ` sashiko-bot
2026-10-13  6:39 ` [PATCH 1/3] ext4: check return value of blkdev_issue_flush() when initializing inode tables sashiko-bot
2026-10-13  8:23 ` [PATCH v2 0/2] ext4: check return value of blkdev_issue_flush() in unchecked call sites guolingxing
2026-10-13  8:23   ` [PATCH v2 1/2] ext4: check return value of blkdev_issue_flush() when initializing inode tables guolingxing
2026-10-13  8:39     ` sashiko-bot
2026-10-13  8:23   ` [PATCH v2 2/2] ext4: check return value of blkdev_issue_flush() when starting a fast commit guolingxing
2026-10-13  8:34     ` sashiko-bot [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=sashiko-outbox-169259@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=guolingxing@tju.edu.cn \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=tytso@mit.edu \
    /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