Skip to content

dm: improve bio-based IO accounting

Mike Snitzer dm-devel linux-block 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest14 patches 3 repliesIn review
  2. v114 patches 10 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14dm: rename split functionsdrivers/md/dm.c+11 -110 replies
2/14dm: fold __clone_and_map_data_bio into __split_and_process_biodrivers/md/dm.c+8 -220 replies
3/14dm: refactor dm_split_and_process_bio a bitdrivers/md/dm.c+28 -260 replies
4/14dm: reduce code duplication in __map_biodrivers/md/dm.c+6 -120 replies
5/14dm: remove impossible BUG_ON in __send_empty_flushdrivers/md/dm.c+0 -10 replies
6/14dm: remove unused mapped_device argument from free_tiodrivers/md/dm.c+2 -20 replies
7/14dm: remove code only needed before submit_bio recursiondrivers/md/dm.c+2 -90 replies
8/14dm: record old_sector in dm_target_io before calling map functiondrivers/md/dm-core.h drivers/md/dm.c+5 -30 replies
9/14dm: move kicking of suspend queue to dm_io_dec_pendingdrivers/md/dm.c+11 -150 replies
10/14block: add bio_start_io_acct_remapped for the benefit of DMblock/blk-core.c drivers/md/dm.c include/linux/blkdev.h+24 -192 replies
11/14dm: add dm_submit_bio_remap interfacedrivers/md/dm-core.h drivers/md/dm.c include/linux/device-mapper.h +1 more+60 -110 replies
12/14dm crypt: use dm_submit_bio_remapdrivers/md/dm-crypt.c+5 -40 replies
13/14dm delay: use dm_submit_bio_remapdrivers/md/dm-delay.c+3 -20 replies
14/14dm: move duplicate code in callers of alloc_tio into alloc_tiodrivers/md/dm.c+13 -141 reply

Reviews trailers per patch

11 of 14 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/14R-b
2/14R-b
3/14R-b
4/14R-b
5/14R-b
6/14R-b
7/14R-b
8/14R-b
9/14R-b
10/14R-b
11/14
12/14
13/14
14/14R-b

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

Read the v2 thread

Cover letter [PATCH v2 00/14] dm: improve bio-based IO accounting

Hi,

All the changes from this patchset are available here:
https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-5.18

This work is based on Jens' for-5.18/block

Please see v1's 0th header for context on motivation behind this patchset:
https://listman.redhat.com/archives/dm-devel/2022-February/msg00193.html

Christoph, I addressed all your feedback from v1 and added the Reviewed-by:s you provided. Thanks for your review.

Patch 10 now isolates the block changes like you asked.

All further review of this v2 patchset is welcomed.

Mike

Mike Snitzer (14):
dm: rename split functions
dm: fold __clone_and_map_data_bio into __split_and_process_bio
dm: refactor dm_split_and_process_bio a bit
dm: reduce code duplication in __map_bio
dm: remove impossible BUG_ON in __send_empty_flush
dm: remove unused mapped_device argument from free_tio
dm: remove code only needed before submit_bio recursion
dm: record old_sector in dm_target_io before calling map function
dm: move kicking of suspend queue to dm_io_dec_pending
block: add bio_start_io_acct_remapped for the benefit of DM
dm: add dm_submit_bio_remap interface
dm crypt: use dm_submit_bio_remap
dm delay: use dm_submit_bio_remap
dm: move duplicate code in callers of alloc_tio into alloc_tio

 block/blk-core.c              |  24 ++---
 drivers/md/dm-core.h          |   2 +
 drivers/md/dm-crypt.c         |   9 +-
 drivers/md/dm-delay.c         |   5 +-
 drivers/md/dm.c               | 234 ++++++++++++++++++++++--------------------
 include/linux/blkdev.h        |  16 ++-
 include/linux/device-mapper.h |   7 ++
 include/uapi/linux/dm-ioctl.h |   4 +-
 8 files changed, 164 insertions(+), 137 deletions(-)
Signature · 1 line
2.15.0