blk-mq: expose stream write hints through debugfs
authorJens Axboe <axboe@kernel.dk>
Sun, 18 Jun 2017 21:27:06 +0000 (15:27 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 00:08:02 +0000 (18:08 -0600)
commit8bc36b55355d3c96fc30b3dc1e6251af5ed715e5
tree1ec10bada786b130f2dac59eb97852b28ff4849b
parent7a5f3af8966903ab2edc0a636b50a08f7c40f7f9
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