diff options
author | Stephen Bates <sbates@raithlin.com> | 2017-04-20 16:59:11 -0600 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-20 17:10:48 -0600 |
commit | 0206319fdfee7c36b97aa6c0561bab206132f813 (patch) | |
tree | b7338a78b1162079ed46003cadb5206d7672e235 /block/blk-mq.c | |
parent | b00c53e8f411a0b2be036c41852c6858541afbf7 (diff) |
blk-mq: Fix poll_stat for new size-based bucketing.
Fixes an issue where the size of the poll_stat array in request_queue
does not match the size expected by the new size based bucketing for
IO completion polling.
Fixes: 720b8ccc4500 ("blk-mq: Add a polling specific stats function")
Signed-off-by: Stephen Bates <sbates@raithlin.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r-- | block/blk-mq.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c index 47b810638729..b6dc9ba38e35 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -42,8 +42,6 @@ static LIST_HEAD(all_q_list); static void blk_mq_poll_stats_start(struct request_queue *q); static void blk_mq_poll_stats_fn(struct blk_stat_callback *cb); -/* Must be consisitent with function below */ -#define BLK_MQ_POLL_STATS_BKTS 16 static int blk_mq_poll_stats_bkt(const struct request *rq) { int ddir, bytes, bucket; |