Skip to content

block/dm: add bio_rewind for improving dm requeue

Ming Lei dm-devel linux-block 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4block: add bio_rewind() APIblock/bio-integrity.c block/bio.c block/blk-crypto-internal.h +3 more+122 -033 replies
2/4dm: add new helper for handling dm_io requeuedrivers/md/dm.c+12 -50 replies
3/4dm: improve handling for DM_REQUEUE and AGAINdrivers/md/dm.c+34 -240 replies
4/4dm: add two stage requeuedrivers/md/dm-core.h drivers/md/dm.c+116 -260 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by.

PatchMing Lei
1/4Co-authored-by
2/4
3/4
4/4

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 5.20 0/4] block/dm: add bio_rewind for improving dm requeue

Hello Guys,

The 1st patch adds bio_rewind which can restore bio to original position by recording sectors between the original position to bio's end sector if the bio's end sector won't change, which should be very common to see.

The 2nd and 3rd patch cleans up dm code for handling requeue & completion.

The last patch implements 2 stage dm io requeue for avoiding to allocate one bio beforehand for just handling requeue which is one unusual event. The 1st stage requeue is added for cloning & restoring original bio in wq context, then 2nd stage requeue will use that as original bio for handling requeue.

Ming Lei (4):
block: add bio_rewind() API
dm: add new helper for handling dm_io requeue
dm: improve handling for DM_REQUEUE and AGAIN
dm: add two stage requeue

 block/bio-integrity.c       |  19 ++++
 block/bio.c                 |  19 ++++
 block/blk-crypto-internal.h |   7 ++
 block/blk-crypto.c          |  23 +++++
 drivers/md/dm-core.h        |  11 ++-
 drivers/md/dm.c             | 180 ++++++++++++++++++++++++++++--------
 include/linux/bio.h         |  21 +++++
 include/linux/bvec.h        |  33 +++++++
 8 files changed, 271 insertions(+), 42 deletions(-)
Signature · 6 lines
2.31.1

--
dm-devel mailing list
[email protected]
https://listman.redhat.com/mailman/listinfo/dm-devel