]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd401caf9c6efc9c3f42422cf1210cd6fbf1d6779
treef1fcf0648a33638655ca7142667a5e67f4ed073b
parent9d55d6d2721c36f1517c4f6fe512db60974a171b
blk-mq: fix iteration of busy bitmap

Commit 59e6d575df99 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: 59e6d575df99 ("blk-mq: reduce unnecessary software queue looping")
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
include/linux/blk-mq.h