blk-mq: expose stream write stats through debugfs
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 22:15:45 +0000 (16:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 22:15:45 +0000 (16:15 -0600)
commitad982590c5aed8c6f00d0091a59ff1921c1b757d
tree9144dc13a15a5b3951d2da3a33ef750f37e364cc
parent2ff04ea3aede3af009cd2a305867dd9254514e81
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