Skip to content

block: fix bi_vcnt misuse for cloned bio

Ming Lei io-uring linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3block: fix bio_may_need_split() by using bvec iterator wayblock/blk.h+10 -36 replies
2/3block: don't initialize bi_vcnt for cloned bio in bio_iov_bvec_set()block/bio.c+1 -12 replies
3/3io_uring: don't re-calculate iov_iter nr_segs in io_import_kbuf()io_uring/rsrc.c+0 -100 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/3] block: fix bi_vcnt misuse for cloned bio

Hello Guys,

The 1st patch removes .bi_vcnt from bio_may_need_split() because the incoming bio may be cloned.

The 2nd patch doesn't initialize cloned bio's bi_vcnt in bio_iov_bvec_set().

The 3rd patch removes iov iter nr_segs re-calculation for io_import_kbuf().

Ming Lei (3):
block: fix bio_may_need_split() by using bvec iterator way
block: don't initialize bi_vcnt for cloned bio in bio_iov_bvec_set()
io_uring: don't re-calculate iov_iter nr_segs in io_import_kbuf()

 block/bio.c     |  2 +-
 block/blk.h     | 13 ++++++++++---
 io_uring/rsrc.c | 10 ----------
 3 files changed, 11 insertions(+), 14 deletions(-)
Signature · 1 line
2.47.0