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>
Tue, 4 Oct 2016 16:18:57 +0000 (10:18 -0600)
commit2e768f72d8cae404bb8a7609bedbaab0cab8474c
tree9f73299998b164130aa81b0b00d51f17ca1c3b7d
parent2ea3fb352fd9675fc55d9c3a81a9303cd051ff4b
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