Skip to content

block: try to make aligned bio in case of big chunk IO

Ming Lei linux-block llvm oe-kbuild-all 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v11 patch 5 repliesSuperseded

Changes in v2 from the cover letter

- add patch 1/2
- add 'max_size' hint to iov_iter_extract_pages() so that bio/iov iter revert can be minimized, as suggested by Christoph

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2block: don't call into iov_iter_revert if nothing is leftblock/bio.c+7 -31 reply
2/2block: try to make aligned bio in case of big chunk IOblock/bio.c include/linux/blkdev.h+118 -31 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH V2 0/2] block: try to make aligned bio in case of big chunk IO

Hello,

The 1st adds check to avoid to call into iov_iter_revert() with zero 'unroll'.

The 2nd patch improves big chunk sequential IO performance by aligning bio with max io size.

V2:
- add patch 1/2
- add 'max_size' hint to iov_iter_extract_pages() so that bio/iov iter revert can be minimized, as suggested by Christoph

BTW, the check on 'bio->bi_bdev' isn't removed because there are more such patterns(P2PDMA, block size check) in __bio_iov_iter_get_pages(), and we need to audit that bio->bi_bdev is really non-NULL first, so it shouldn't be part of this patchset

Ming Lei (2):
block: don't call into iov_iter_revert if nothing is left
block: try to make aligned bio in case of big chunk IO

 block/bio.c            | 126 +++++++++++++++++++++++++++++++++++++++--
 include/linux/blkdev.h |   5 ++
 2 files changed, 125 insertions(+), 6 deletions(-)
Signature · 1 line
2.41.0