block: add scalable completion tracking of requests
authorJens Axboe <axboe@fb.com>
Fri, 9 Sep 2016 20:08:50 +0000 (14:08 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 9 Sep 2016 20:08:50 +0000 (14:08 -0600)
commit6a58d145409749827f8e9770caa5e27550481347
treea445c3a545fc71a223039a77fbd803fddac49b6a
parent05aa47944475b441c5513158166874cf1f15e354
block: add scalable completion tracking of requests

For legacy block, we simply track them in the request queue. For
blk-mq, we track them on a per-sw queue basis, which we can then
sum up through the hardware queues and finally to a per device
state.

The stats are tracked in, roughly, 0.1s interval windows.

Add sysfs files to display the stats.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/Makefile
block/blk-core.c
block/blk-mq-sysfs.c
block/blk-mq.c
block/blk-mq.h
block/blk-stat.c [new file with mode: 0644]
block/blk-stat.h [new file with mode: 0644]
block/blk-sysfs.c
include/linux/blk_types.h
include/linux/blkdev.h