From: Christoph Hellwig <hch@lst.de>
To: Christian Brauner <brauner@kernel.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>, Carlos Maiolino <cem@kernel.org>,
Fengnan Chang <changfengnan@bytedance.com>,
linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: [PATCH 1/2] iomap: don't call sb_init_dio_done_wq from the simple dio read path
Date: Fri, 4 Dec 2026 10:10:55 +0100 [thread overview]
Message-ID: <20261204091101.2533591-2-hch@lst.de> (raw)
In-Reply-To: <20261204091101.2533591-1-hch@lst.de>
Since commit bcb0d867a601 ("iomap: use bio_complete_in_task for
buffered simple dio read failures"), the simple read path doesn't
ever use the per-sb dio aio workqueue, so don't initialize it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Fengnan Chang <changfengnan@bytedance.com>
---
fs/iomap/direct-io.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/fs/iomap/direct-io.c b/fs/iomap/direct-io.c
index f00b0841fdd0..0d6ce1a30b2c 100644
--- a/fs/iomap/direct-io.c
+++ b/fs/iomap/direct-io.c
@@ -1001,13 +1001,6 @@ ssize_t __iomap_dio_read_simple(struct kiocb *iocb, struct iov_iter *iter,
goto out_dio_end;
}
- if (unlikely(!iomi->inode->i_sb->s_dio_done_wq &&
- !is_sync_kiocb(iocb))) {
- ret = sb_init_dio_done_wq(iomi->inode->i_sb);
- if (ret < 0)
- goto out_dio_end;
- }
-
trace_iomap_dio_rw_begin(iocb, iter, 0, 0);
bio = bio_alloc_bioset(iomi->iomap.bdev,
--
2.53.0
next prev parent reply other threads:[~2026-12-04 9:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 9:10 optimize iomap simple dio reads v2 Christoph Hellwig
2026-12-04 9:10 ` Christoph Hellwig [this message]
2026-12-04 9:35 ` [PATCH 1/2] iomap: don't call sb_init_dio_done_wq from the simple dio read path sashiko-bot
2026-12-04 9:10 ` [PATCH 2/2] iomap: don't use struct iomap_iter for simple dio reads Christoph Hellwig
2026-12-04 9:35 ` sashiko-bot
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=20261204091101.2533591-2-hch@lst.de \
--to=hch@lst.de \
--cc=brauner@kernel.org \
--cc=cem@kernel.org \
--cc=changfengnan@bytedance.com \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
--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