blk-mq: expose stream write stats through debugfs
authorJens Axboe <axboe@kernel.dk>
Wed, 14 Jun 2017 15:22:23 +0000 (09:22 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 14 Jun 2017 18:55:25 +0000 (12:55 -0600)
commit7b5c15e7ac7b055c906ddda9c97f86af8bae0102
treeffd81844709dea58c86e421f18d67a8a773c81b2
parenta0c808bf215d3a10a219e4d1e9cec581191e6c3c
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.

Drivers will write to q->stream_writes[] if they handle a stream.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c
include/linux/blkdev.h