block: add scalable completion tracking of requests
authorJens Axboe <axboe@fb.com>
Sat, 16 Apr 2016 00:56:45 +0000 (18:56 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 18 Apr 2016 01:16:44 +0000 (20:16 -0500)
commit6d60e8286c6bcfd7038e6b3a2f600a18f67f1dc6
treed89bc6f983068c1de80e33f776308add79169e7e
parent613fd4dcd690c58565f711957254082b7683ef45
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