Linux EXT4 FS development
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Julian Sun" <sunjunchao@bytedance.com>, linux-ext4@vger.kernel.org
Cc: tytso@mit.edu
Subject: Re: [PATCH] ext4: submit pending IO before restarting writeback handle
Date: Wed, 02 Dec 2026 08:51:46 +0000	[thread overview]
Message-ID: <sashiko-outbox-245227@kernel.org> (raw)
In-Reply-To: <20261202084138.3973158-1-sunjunchao@bytedance.com>

> In data=journal mode, mpage_prepare_extent_to_map() can deadlock with
> jbd2 commit when restarting the handle while holding an unsubmitted bio:
> 
>   Writeback worker            jbd2 commit thread
>   ----------------            ------------------
>   mpage_submit_folio()
>     set folio writeback
>     queue bio in io_bio
>   mpage_journal_page_buffers()
>     redirty folio
>   ext4_journal_ensure_credits()
>     jbd2__journal_restart()
>       wait for commit ------> ext4_journalled_submit_inode_data_buffers()
>                                 folio_wait_writeback()
>   <---------------------------    (blocked on unsubmitted bio)
> [ ... ]
> Fixes: 3f079114bf52 ("ext4: Convert data=journal writeback to use ext4_writepages()")
> Reported-by: syzbot+2cc28770f99213896a7c@syzkaller.appspotmail.com
> Closes: https://syzkaller.appspot.com/bug?extid=2cc28770f99213896a7c
> Cc: stable@vger.kernel.org
> Signed-off-by: Julian Sun <sunjunchao@bytedance.com>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261202084138.3973158-1-sunjunchao@bytedance.com?part=1

      reply	other threads:[~2026-12-02  8:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02  8:41 [PATCH] ext4: submit pending IO before restarting writeback handle Julian Sun
2026-12-02  8:51 ` 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-245227@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-ext4@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    --cc=sunjunchao@bytedance.com \
    --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