From: "Darrick J. Wong" <djwong@kernel.org>
To: Christoph Hellwig <hch@lst.de>
Cc: Joanne Koong <joannelkoong@gmail.com>,
changfengnan@bytedance.com,
Christian Brauner <brauner@kernel.org>,
Theodore Ts'o <tytso@mit.edu>, Carlos Maiolino <cem@kernel.org>,
linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH 2/3] iomap: decouple simple direct I/O reads from iomap_dio_rw
Date: Thu, 23 Jul 2026 08:10:21 -0700 [thread overview]
Message-ID: <20260723151021.GC7380@frogsfrogsfrogs> (raw)
In-Reply-To: <20260723045347.GA6641@lst.de>
On Thu, Jul 23, 2026 at 06:53:47AM +0200, Christoph Hellwig wrote:
> On Wed, Jul 22, 2026 at 12:03:49PM -0700, Joanne Koong wrote:
> > > +ssize_t __iomap_dio_simple(struct kiocb *iocb, struct iov_iter *iter,
> > > + struct iomap_iter *iomi);
> >
> > Might be nice to have _read_ in this name as well, eg __iomap_dio_read_simple
>
> Yeah. I wanted the read out of the guts of the implementation, as
> most of the code is not strictly limited to reads. But with the public
> API needing it, we might as well be consistent in the function naming.
>
> > > + if (!ret)
> > > + ret = __iomap_dio_simple(iocb, iter, &iomi);
> > > + if (ret <= 0 && ret != -EIOCBQUEUED)
> > > + inode_dio_end(iomi.inode);
> >
> > afaict, the inode_dio_end() error handling has to be done by
> > __iomap_dio_simple() to properly account for the synchronous case. I
> > ran into this earlier when doing the iomap_next_fn inlining. For the
> > synchronous case, __iomap_dio_simple() calls
> > iomap_dio_simple_complete() which calls inode_dio_end() even on
> > errors.
>
> Yes. Sashiko also reported that yesterday and I replied with a patch,
> but I now noticed the report and thus my reply only went to me,
> a sashiko-review list and Ted, but not everone else or the lists.
>
> WTF?
Sashiko doesn't email the lists by default, and I don't think we want to
turn that on for the fsdevel firehose.
I sorta wish it did, but we all seem still to be struggling with what to
do with valid complaints about existing problems from sashiko that
neither were introduced by the patchset nor critically impact the new
code.
In the meantime I also don't like the "private review involving someone
else's dashboard" aspects either. No cake, no eating. :(
--D
next prev parent reply other threads:[~2026-07-23 15:10 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-22 12:49 decouple simple direct I/O reads from iomap_dio_rw Christoph Hellwig
2026-07-22 12:49 ` [PATCH 1/3] iomap: split iomap_iter() logic into iomap_iter_next() Christoph Hellwig
2026-07-23 2:06 ` changfengnan
2026-07-22 12:49 ` [PATCH 2/3] iomap: decouple simple direct I/O reads from iomap_dio_rw Christoph Hellwig
2026-07-22 19:03 ` Joanne Koong
2026-07-23 2:17 ` changfengnan
2026-07-23 4:55 ` Christoph Hellwig
2026-07-23 4:53 ` Christoph Hellwig
2026-07-23 15:10 ` Darrick J. Wong [this message]
2026-07-23 16:08 ` Theodore Tso
2026-07-22 12:49 ` [PATCH 3/3] iomap: use GFP_NOWAIT when application for iomap_dio_simple allocations Christoph Hellwig
2026-07-22 21:01 ` Joanne Koong
2026-07-23 2:06 ` changfengnan
-- strict thread matches above, loose matches on Subject: below --
2026-07-23 5:01 decouple simple direct I/O reads from iomap_dio_rw v2 Christoph Hellwig
2026-07-23 5:01 ` [PATCH 2/3] iomap: decouple simple direct I/O reads from iomap_dio_rw Christoph Hellwig
2026-07-23 16:47 ` Darrick J. Wong
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=20260723151021.GC7380@frogsfrogsfrogs \
--to=djwong@kernel.org \
--cc=brauner@kernel.org \
--cc=cem@kernel.org \
--cc=changfengnan@bytedance.com \
--cc=hch@lst.de \
--cc=joannelkoong@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.