]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
block: add poll_considered statistic
authorStephen Bates <sbates@raithlin.com>
Tue, 13 Sep 2016 18:23:15 +0000 (12:23 -0600)
committerJens Axboe <axboe@fb.com>
Wed, 14 Sep 2016 14:41:21 +0000 (08:41 -0600)
commit6e219353afa1f67f453141f7462b01708ebf5574
treed09924891e887e970be9a18442bebc40d2ad64ee
parent0eadf37afc2500e1162c9040ec26a705b9af8d47
block: add poll_considered statistic

In order to help determine the effectiveness of polling in a running
system it is usful to determine the ratio of how often the poll
function is called vs how often the completion is checked. For this
reason we add a poll_considered variable and add it to the sysfs entry
for io_poll.

Signed-off-by: Stephen Bates <sbates@raithlin.com>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-core.c
block/blk-mq-sysfs.c
include/linux/blk-mq.h