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>
Mon, 19 Jun 2017 16:52:50 +0000 (10:52 -0600)
commit40198d7261ccda11a12e7a6bfb1f41dde332c898
tree76387e6dc699b339ef2c0af3a2926fe4761c284d
parentd9e75c069eb8dfdfa947babf4d14c899f252aa9c
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