block: add scalable completion tracking of requests
authorJens Axboe <axboe@fb.com>
Thu, 11 Aug 2016 20:19:46 +0000 (14:19 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 31 Aug 2016 16:48:10 +0000 (10:48 -0600)
commitf0723751c55519d89c2f364c7346d455e1adf733
treec23b86e8fd8d4c8932eb70dc3dae630b79c79119
parent06a3798ebf04552d1b2cd0f854c6cdbadd29e060
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