Skip to content

optimise bvec/bio iteration

Pavel Begunkov linux-block 1 version Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 6 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2block: optimise for_each_bvec() advanceinclude/linux/bvec.h+15 -51 reply
2/2bio: optimise bvec iterationblock/bio.c include/linux/bio.h+17 -44 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchMing LeiChristoph Hellwig
1/2R-b R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] optimise bvec/bio iteration

This adds simpler versions of bvec_iter_advance() and bio_advance_iter() (i.e. *_single()), that are faster but work with the restriction that @bytes shouldn't be more than available in the current bvec segment.

That covers most of bvec/bio iteration/foreach, that are massively inlined, and thus also nicely shrinks binary.

Others non core-block users might be updated on case by case basis (if applicable) after the change is merged.

Pavel Begunkov (2):
block: optimise for_each_bvec() advance
bio: optimise bvec iteration

 block/bio.c          |  4 ++--
 include/linux/bio.h  | 17 +++++++++++++++--
 include/linux/bvec.h | 20 +++++++++++++++-----
 3 files changed, 32 insertions(+), 9 deletions(-)
Signature · 1 line
2.24.0