blk-mq: expose write hints through debugfs
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 14:15:27 +0000 (08:15 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 27 Jun 2017 17:47:49 +0000 (11:47 -0600)
commit502839f2b9982f9a729fb88e7768619227b5aa1f
tree921002383e9064909032f024e94cb5e9424d27f5
parentd57ce7911a65443020934599aa3213ce04c54a7d
blk-mq: expose 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>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c
include/linux/blkdev.h