From: Omar Sandoval <osandov@xxxxxx> Hi, Jens, I added a blktest (block/017) for the inflight counter after you mentioned that we should have one and it easily found a bug :) Patch 2 fixes the bug found by the test, and patch 1 fixes another bug I noticed. Based on Linus' master. Thanks! Omar Sandoval (2): blk-mq: count allocated but not started requests in iostats inflight blk-mq: fix sysfs inflight counter block/blk-mq.c | 40 +++++++++++++++++++++++++++------------ block/blk-mq.h | 4 +++- block/genhd.c | 12 ++++++++++++ block/partition-generic.c | 10 ++++++---- include/linux/genhd.h | 4 +++- 5 files changed, 52 insertions(+), 18 deletions(-) -- 2.17.0