block: add scalable completion tracking of requests
authorJens Axboe <axboe@fb.com>
Thu, 1 Sep 2016 16:22:41 +0000 (10:22 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 7 Sep 2016 14:39:49 +0000 (08:39 -0600)
commita13cc5885ddd5582129869c1837821d6af6d48bb
treed4777e40eaa1699c4bb9ff5d47c2fd7f0217e6f4
parenta98f5ab3840c2e6008c478aafe5df055404acdd1
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