blk-mq: expose stream write stats through debugfs
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 16:20:48 +0000 (10:20 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 13 Jun 2017 16:36:40 +0000 (10:36 -0600)
commit6e9cbbf66bb5ac68512e0d32433fcbe9c6c7d438
treeb8f6f665676dadbee74f121e6f9d0910c524979b
parentbed9d7677eceb0be64b338b307f359a999b17a55
blk-mq: expose stream write stats through debugfs

Useful to verify that things are working the way they should.
Reading the file will return number of kb written to each
stream. Writing the file will reset the statistics. No care
is taken to ensure that we don't race on updates.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk-mq-debugfs.c
include/linux/blkdev.h