Skip to content

per-cpu in_flight counters for bio-based drivers

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 3 repliesIn review
  2. v37 patches 1 replySuperseded
  3. v26 patches 7 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7dm: dont rewrite dm_disk(md)->part0.in_flightdrivers/md/dm.c+1 -30 replies
2/7dm rq: leverage blk_mq_queue_busy() to check for outstanding IOdrivers/md/dm-rq.c+4 -50 replies
3/7block: stop passing 'cpu' to all percpu stats methodsblock/bio.c block/blk-core.c block/blk-merge.c +4 more+46 -520 replies
4/7block: delete part_round_stats and switch to less precise countingblock/bio.c block/blk-core.c block/blk-merge.c +3 more+26 -700 replies
5/7block: switch to per-cpu in-flight countersblock/genhd.c include/linux/genhd.h+55 -170 replies
6/7block: return just one value from part_in_flightblock/blk-mq.c block/blk-mq.h block/genhd.c +2 more+22 -360 replies
7/7dm: remove the pending IO accountingdrivers/md/dm-core.h drivers/md/dm.c+15 -210 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [PATCH v4 0/7] per-cpu in_flight counters for bio-based drivers

Hey,

This v4 addresses the compile issues on various archs when CONFIG_SMP isn't set (by introducing appropriate wrappers in genhd.h)

Testing with this v4 I was unable to reproduce the issue you reported where iostat always reports 0 for avgqu-sz -- but please let me know if you still see problems like that.

Thanks,
Mike

Mike Snitzer (2):
dm rq: leverage blk_mq_queue_busy() to check for outstanding IO
block: stop passing 'cpu' to all percpu stats methods

Mikulas Patocka (5):
dm: dont rewrite dm_disk(md)->part0.in_flight
block: delete part_round_stats and switch to less precise counting
block: switch to per-cpu in-flight counters
block: return just one value from part_in_flight
dm: remove the pending IO accounting

 block/bio.c               | 36 ++++++++++++++++-----
 block/blk-core.c          | 80 +++++++----------------------------------------
 block/blk-merge.c         |  4 +--
 block/blk-mq.c            | 12 +++----
 block/blk-mq.h            |  3 +-
 block/genhd.c             | 55 ++++++++++++++++++--------------
 block/partition-generic.c | 10 ++----
 drivers/md/dm-core.h      |  2 --
 drivers/md/dm-rq.c        |  9 +++---
 drivers/md/dm.c           | 36 +++++++++------------
 drivers/md/md.c           |  7 ++---
 include/linux/genhd.h     | 55 +++++++++++++++++++-------------
 12 files changed, 137 insertions(+), 172 deletions(-)
Signature · 1 line
2.15.0