blk-mq: expose stream write hints through debugfs
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Jun 2017 16:59:45 +0000 (10:59 -0600)
committerJens Axboe <axboe@fb.com>
Sat, 17 Jun 2017 19:54:15 +0000 (13:54 -0600)
commit6e001309d91902c1749455327c7aedd4ab6c11a0
treeabef954a7f3933bf3508fe8d98adf5e318bf1b40
parenta0311a8e50b6247753801a24a82c08129b073ad8
blk-mq: expose stream write hints through debugfs

Useful to verify that things are working the way they should.
Reading the file will return number of kb written with each
write hint. 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->write_hints[] if they handle a given
write hint.

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