blk-mq: fix iteration of busy bitmap
authorJens Axboe <axboe@fb.com>
Fri, 17 Apr 2015 14:28:50 +0000 (08:28 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 17 Apr 2015 14:31:12 +0000 (08:31 -0600)
commit569fd0ce96087283866ab8c438dac4bcf1738846
treef1fcf0648a33638655ca7142667a5e67f4ed073b
parent54e514b91b95d6441c12a7955addfb9f9d2afc65
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>
block/blk-mq.c
include/linux/blk-mq.h