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>
Thu, 15 Jun 2017 16:18:41 +0000 (10:18 -0600)
commit15525b9b5e3391b722abf937f922f74bd36c6d96
treeffd81844709dea58c86e421f18d67a8a773c81b2
parent742ea84030a9885c8c23b6f7ceefb9c8b6621506
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