diff options
author | Jens Axboe <axboe@fb.com> | 2015-04-17 10:28:50 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2015-04-17 10:31:12 -0400 |
commit | 569fd0ce96087283866ab8c438dac4bcf1738846 (patch) | |
tree | f1fcf0648a33638655ca7142667a5e67f4ed073b /include/linux/blk-mq.h | |
parent | 54e514b91b95d6441c12a7955addfb9f9d2afc65 (diff) |
blk-mq: fix iteration of busy bitmap
Commit 889fa31f00b2 was a bit too eager in reducing the loop count,
so we ended up missing queues in some configurations. Ensure that
our division rounds up, so that's not the case.
Reported-by: Guenter Roeck <linux@roeck-us.net>
Fixes: 889fa31f00b2 ("blk-mq: reduce unnecessary software queue looping")
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'include/linux/blk-mq.h')
-rw-r--r-- | include/linux/blk-mq.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/blk-mq.h b/include/linux/blk-mq.h index 8210e8797c12..2056a99b92f8 100644 --- a/include/linux/blk-mq.h +++ b/include/linux/blk-mq.h | |||
@@ -13,7 +13,7 @@ struct blk_mq_cpu_notifier { | |||
13 | }; | 13 | }; |
14 | 14 | ||
15 | struct blk_mq_ctxmap { | 15 | struct blk_mq_ctxmap { |
16 | unsigned int map_size; | 16 | unsigned int size; |
17 | unsigned int bits_per_word; | 17 | unsigned int bits_per_word; |
18 | struct blk_align_bitmap *map; | 18 | struct blk_align_bitmap *map; |
19 | }; | 19 | }; |