Commit 55141366 authored by Jens Axboe's avatar Jens Axboe

bfq-iosched: don't worry about reserved tags in limit_depth

Reserved tags are used for error handling, we don't need to
care about them for regular IO. The core won't call us for these
anyway.
Acked-by: default avatarPaolo Valente <paolo.valente@linaro.org>
Reviewed-by: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 17a51199
...@@ -542,14 +542,7 @@ static void bfq_limit_depth(unsigned int op, struct blk_mq_alloc_data *data) ...@@ -542,14 +542,7 @@ static void bfq_limit_depth(unsigned int op, struct blk_mq_alloc_data *data)
if (op_is_sync(op) && !op_is_write(op)) if (op_is_sync(op) && !op_is_write(op))
return; return;
if (data->flags & BLK_MQ_REQ_RESERVED) { bt = &tags->bitmap_tags;
if (unlikely(!tags->nr_reserved_tags)) {
WARN_ON_ONCE(1);
return;
}
bt = &tags->breserved_tags;
} else
bt = &tags->bitmap_tags;
if (unlikely(bfqd->sb_shift != bt->sb.shift)) if (unlikely(bfqd->sb_shift != bt->sb.shift))
bfq_update_depths(bfqd, bt); bfq_update_depths(bfqd, bt);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment