All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gao Xiang <hsiangkao@linux.alibaba.com>
To: Joanne Koong <joannelkoong@gmail.com>,
	hch@lst.de, willy@infradead.org, djwong@kernel.org
Cc: linux-fsdevel@vger.kernel.org, linux-xfs@vger.kernel.org
Subject: Re: [RFC PATCH v1 0/3] iomap: convert to in-iter ->iomap_next() model
Date: Thu, 25 Jun 2026 11:25:54 +0800	[thread overview]
Message-ID: <6446cb94-a005-4e4c-8034-d7bf2a4b402b@linux.alibaba.com> (raw)
In-Reply-To: <20260625024723.1611000-1-joannelkoong@gmail.com>



On 2026/6/25 10:47, Joanne Koong wrote:
> This is submitted to get some feedback on what converting to an in-iter
> ->iomap_next() model would look like. It revives Matthew's previous RFC [1],
> which had the same goal.
> 
> The series merges ->iomap_begin()/->iomap_end() into a single ->iomap_next()
> callback (patches 1-2) and shows an example of devirtualizing the callbacks on
> a hot path so the indirect call through struct iomap_ops is avoided (patch 3).
> This series is on top of vfs.all (commit e7a6d06e3c3e8).
> 
> A few questions:
> * is this roughly the in-iter direction you had in mind?
> * is removing the indirect call still worth it? My understanding is that
>    indirect calls are cheap on modern eIBRS hardware and the conversion adds
>    some per-filesystem boilerplate, so I'm unsure if it carries its weight. If
>    not, do you think the in-iter model is still worth having on its own?


As I mentioned a year ago, I really hope this way can be proceed
to avoid iomap iter-callback models:

https://lore.kernel.org/r/20250905152118.GE1587915@frogsfrogsfrogs

And in that way, iomap can be more flexible as a fs IO library.

Thanks,
Gao Xiang

> 
> Thanks,
> Joanne
> 
> [1] https://lore.kernel.org/linux-fsdevel/20200728173216.7184-1-willy@infradead.org/T/#u

  parent reply	other threads:[~2026-06-25  3:26 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-25  2:47 [RFC PATCH v1 0/3] iomap: convert to in-iter ->iomap_next() model Joanne Koong
2026-06-25  2:47 ` [RFC PATCH v1 1/3] iomap: add ->iomap_next() and iomap_process() helper Joanne Koong
2026-06-25 12:56   ` Christoph Hellwig
2026-06-25 21:03     ` Joanne Koong
2026-06-26  5:12       ` Christoph Hellwig
2026-06-25  2:47 ` [RFC PATCH v1 2/3] xfs: convert read and buffered write iomap ops to ->iomap_next() Joanne Koong
2026-06-25  2:47 ` [RFC PATCH v1 3/3] xfs: example of devirtualizing buffered write iomap callbacks Joanne Koong
2026-06-25 13:00   ` Christoph Hellwig
2026-06-25 20:46     ` Joanne Koong
2026-06-25  3:25 ` Gao Xiang [this message]
2026-06-25  3:37   ` [RFC PATCH v1 0/3] iomap: convert to in-iter ->iomap_next() model Gao Xiang
2026-06-25 13:02   ` Christoph Hellwig
2026-06-25 13:21     ` Gao Xiang
2026-06-25 21:33       ` Joanne Koong
2026-06-26  2:22         ` Gao Xiang
2026-06-26  5:10           ` Christoph Hellwig
2026-06-26  5:35             ` Gao Xiang
2026-06-26  5:38               ` Christoph Hellwig
2026-06-25 13:03 ` Christoph Hellwig

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=6446cb94-a005-4e4c-8034-d7bf2a4b402b@linux.alibaba.com \
    --to=hsiangkao@linux.alibaba.com \
    --cc=djwong@kernel.org \
    --cc=hch@lst.de \
    --cc=joannelkoong@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-xfs@vger.kernel.org \
    --cc=willy@infradead.org \
    /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.