From: Christoph Hellwig <hch@infradead.org>
To: Jeff Layton <jlayton@kernel.org>
Cc: xiubli@redhat.com, idryomov@gmail.com, ceph-devel@vger.kernel.org
Subject: Re: [PATCH v3 0/2] libceph: add new iov_iter msg_data type and use it for reads
Date: Sun, 3 Jul 2022 22:56:42 -0700 [thread overview]
Message-ID: <YsKBGq99GNpL5jMu@infradead.org> (raw)
In-Reply-To: <20220701103013.12902-1-jlayton@kernel.org>
On Fri, Jul 01, 2022 at 06:30:11AM -0400, Jeff Layton wrote:
> Currently, we take an iov_iter from the netfs layer, turn that into an
> array of pages, and then pass that to the messenger which eventually
> turns that back into an iov_iter before handing it back to the socket.
>
> This patchset adds a new ceph_msg_data_type that uses an iov_iter
> directly instead of requiring an array of pages or bvecs. This allows
> us to avoid an extra allocation in the buffered read path, and should
> make it easier to plumb in write helpers later.
>
> For now, this is still just a slow, stupid implementation that hands
> the socket layer a page at a time like the existing messenger does. It
> doesn't yet attempt to pass through the iov_iter directly.
>
> I have some patches that pass the cursor's iov_iter directly to the
> socket in the receive path, but it requires some infrastructure that's
> not in mainline yet (iov_iter_scan(), for instance). It should be
> possible to something similar in the send path as well.
Btw, is there any good reason to not simply replace ceph_msg_data
with an iov_iter entirely?
next prev parent reply other threads:[~2022-07-04 5:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-01 10:30 [PATCH v3 0/2] libceph: add new iov_iter msg_data type and use it for reads Jeff Layton
2022-07-01 10:30 ` [PATCH v3 1/2] libceph: add new iov_iter-based ceph_msg_data_type and ceph_osd_data_type Jeff Layton
2022-07-01 10:30 ` [PATCH v3 2/2] ceph: use osd_req_op_extent_osd_iter for netfs reads Jeff Layton
2022-07-04 1:55 ` [PATCH v3 0/2] libceph: add new iov_iter msg_data type and use it for reads Xiubo Li
2022-07-04 5:56 ` Christoph Hellwig [this message]
2022-07-05 12:59 ` Jeff Layton
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=YsKBGq99GNpL5jMu@infradead.org \
--to=hch@infradead.org \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=jlayton@kernel.org \
--cc=xiubli@redhat.com \
/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