diff options
author | Stephen Bates <sbates@raithlin.com> | 2016-09-13 14:23:15 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-09-14 10:41:21 -0400 |
commit | 6e219353afa1f67f453141f7462b01708ebf5574 (patch) | |
tree | d09924891e887e970be9a18442bebc40d2ad64ee /include/linux/blk-mq.h | |
parent | 0eadf37afc2500e1162c9040ec26a705b9af8d47 (diff) |
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>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index e1544f0f8c21..7710f795d7c2 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -61,6 +61,7 @@ struct blk_mq_hw_ctx { | |||
61 | struct blk_mq_cpu_notifier cpu_notifier; | 61 | struct blk_mq_cpu_notifier cpu_notifier; |
62 | struct kobject kobj; | 62 | struct kobject kobj; |
63 | 63 | ||
64 | unsigned long poll_considered; | ||
64 | unsigned long poll_invoked; | 65 | unsigned long poll_invoked; |
65 | unsigned long poll_success; | 66 | unsigned long poll_success; |
66 | }; | 67 | }; |