Skip to content

Turn single segment imports into ITER_UBUF

Jens Axboe linux-fsdevel 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest11 patches 10 repliesIn review
  2. v59 patches 4 repliesSuperseded
  3. v48 patches 18 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v30 of 4 patches0 repliesSuperseded
v24 patches5 repliesSuperseded
v12 patches9 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11block: ensure bio_alloc_map_data() deals with ITER_UBUF correctlyblock/blk-map.c+3 -20 replies
2/11iov_iter: add iter_iovec() helperblock/blk-map.c drivers/infiniband/hw/hfi1/file_ops.c drivers/infiniband/hw/qib/qib_file_ops.c +9 more+73 -530 replies
3/11iov_iter: add iter_iov_addr() and iter_iov_len() helpersfs/read_write.c include/linux/uio.h io_uring/rw.c +1 more+24 -250 replies
4/11iov_iter: remove iov_iter_iovec()include/linux/uio.h+0 -90 replies
5/11iov_iter: set nr_segs = 1 for ITER_UBUFinclude/linux/uio.h+2 -10 replies
6/11iov_iter: overlay struct iovec and ubuf/leninclude/linux/uio.h+30 -98 replies
7/11IB/hfi1: check for user backed iterator, not specific iterator typedrivers/infiniband/hw/hfi1/file_ops.c+2 -50 replies
8/11IB/qib: check for user backed iterator, not specific iterator typedrivers/infiniband/hw/qib/qib_file_ops.c+1 -10 replies
9/11ALSA: pcm: check for user backed iterator, not specific iterator typesound/core/pcm_native.c+2 -20 replies
10/11iov_iter: convert import_single_range() to ITER_UBUFlib/iov_iter.c+1 -30 replies
11/11iov_iter: import single vector iovecs as ITER_UBUFlib/iov_iter.c+27 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCHSET v6 0/11] Turn single segment imports into ITER_UBUF

Hi,

Rather than repeat the same blurb again, see the v2 posting here:

https://lore.kernel.org/linux-fsdevel/[email protected]/

tldr - turn single segment iovecs into ITER_UBUF rather than ITER_IOVEC, because they are more efficient.

Attempt 2 at doing the overlay. The series starts by adding an iter_iov() helper, which simply returns iter->iov. At the same time we rename it, to catch anyone using it and to further signify that future direct uses of it should be discouraged. There are a few manual bits left, I'll clean those up if we agree this is moving in the right direction.

Then we get rid of returning an iovec copy with iov_iter_iovec(), and killing off that function. Two helpers are added to return the current segment address and length.

Then the usual few iter_is_iovec() -> iter->user_backed changes. For the alsa part, Takashi did say that single segments could be valid. But with the rest of the changes, this is no longer interesting as we don't have to deal with it separately.

Finally, do the last two patches that turn single iovec segments into ITER_UBUF at import time.

Passes testing, and verified we do the right thing for 1 and multi segments.

Also viewable here:

https://git.kernel.dk/cgit/linux-block/log/?h=iter-ubuf.2

Signature · 1 line
Jens Axboe