From: sashiko-bot@kernel.org
To: "Fengnan Chang" <changfengnan@bytedance.com>
Cc: linux-ext4@vger.kernel.org, tytso@mit.edu
Subject: Re: [PATCH v2] iomap: only poll direct I/O that is a single bio
Date: Wed, 02 Dec 2026 12:36:05 +0000 [thread overview]
Message-ID: <sashiko-outbox-245730@kernel.org> (raw)
In-Reply-To: <20261202121922.1633960-1-changfengnan@bytedance.com>
> An io_uring IOPOLL ring sets IOCB_HIPRI, and iomap marks a bio
> REQ_POLLED and stores it in iocb->private. A polled bio raises no
> interrupt, and the caller can only poll it after __iomap_dio_rw()
> returns. If __iomap_dio_rw() instead waits for the dio itself, nothing
> polls the bio and the I/O stalls until the request times out. NVMe then
> reaps the completion from its timeout handler, after 30 seconds by
> default.
>
> __iomap_dio_rw() already does not poll sync kiocbs, and a mapping that
> needs completion work clears IOCB_HIPRI. But it can still wait for a
> dio that has a polled bio:
>
> - IOMAP_DIO_FORCE_WAIT: for example, an XFS unaligned write ending at
> or past i_size (such as 512 bytes at offset 7680 of an 8 KiB file,
> which needs neither completion work nor tail zeroing), or an ext4
> [ ... ]
> -g io_uring) shows no regressions on ext4, XFS, or gfs2.
>
> Fixes: 9650b453a3d4 ("block: ignore RWF_HIPRI hint for sync dio")
> Cc: stable@vger.kernel.org
> Signed-off-by: Fengnan Chang <changfengnan@bytedance.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261202121922.1633960-1-changfengnan@bytedance.com?part=1
prev parent reply other threads:[~2026-12-02 12:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-02 12:19 [PATCH v2] iomap: only poll direct I/O that is a single bio Fengnan Chang
2026-12-02 12:36 ` 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-245730@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=changfengnan@bytedance.com \
--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