Skip to contentSkip to conversation

iov_iter: replace import_single_range with ubuf

PATCH Christoph Hellwig 4 participants 5 messages Jan 8, 2023 – Jan 9, 2023 2 messages not in the archive

Subsystems (8)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

maintainer
#5 lore raw

Re: [PATCHv2 02/12] io_uring: switch network send/recv to ITER_UBUF

Quoted 3 lines · Keith Busch

From: Jens Axboe <[email protected]>

This is more efficient that iter_iov.

Looks like that s/that/than typo ended up in a few spots throughout this series... Nothing major, but figured I'd bring it up.

Signature · 1 line
Jens Axboe
maintainer
#6 lore raw
In reply to a message not in the archive
Quoted 9 lines · Keith Busch

From: Keith Busch <[email protected]>

ITER_UBUF is a more efficient representation when using single vector buffers, providing small optimizations over ITER_IOVEC. This series introduces a helper to set these up, and replaces all applicable users of import_single_range with the new helper. And since there are no single range users left after this change, the helper is no longer needed.

Quoted 6 lines

As noted in v1(*), there are some fundamental differences to how io_uring compares to read/write/readv/writev. There are only the two affected file_operations, and they already do not work with io_uring due to their diverging semantics for vectored vs non-vectored read/write. Therefore, this series having io_uring prefer ubuf iov_iter isn't introducing new breakage.

Pondering how to stage this, both for later upstream but also for testing. Would probably make the best sense to stage 1-5 separately, and then just punt the remaining ones to the appropriate subsystems. And then 12/12 can go in when they have all been applied.

Signature · 1 line
Jens Axboe