Skip to content

block: optimize for single-page bvec workloads

Ming Lei linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: introduce bvec_nth_page()block/blk-merge.c include/linux/bvec.h+9 -40 replies
2/4block: optimize __blk_segment_map_sg() for single-page bvecblock/blk-merge.c+7 -20 replies
3/4block: optimize blk_bio_segment_split for single-page bvecblock/blk-merge.c+9 -30 replies
4/4block: introduce mp_bvec_for_each_page() for iterating over pageblock/bio.c include/linux/bvec.h+8 -42 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] block: optimize for single-page bvec workloads

Hi,

The 1st patch introduce bvec_nth_page(), so that nth_page() can be avoided if the bvec is single-page.

The 2nd and 3rd patch adds fast path for single-page bvec case.

The last patch introduces a light-weight helper for iterating over pages, which may improve __bio_iov_bvec_add_pages(). This patch is for io_uring.

Thanks,

Ming Lei (4):
block: introduce bvec_nth_page()
block: optimize __blk_segment_map_sg() for single-page bvec
block: optimize blk_bio_segment_split for single-page bvec
block: introduce mp_bvec_for_each_page() for iterating over page

 block/bio.c          |  7 +++----
 block/blk-merge.c    | 23 +++++++++++++++++------
 include/linux/bvec.h | 16 +++++++++++++---
 3 files changed, 33 insertions(+), 13 deletions(-)
Signature · 1 line
2.9.5