Skip to content

Commit

Permalink
bfq-iosched: don't worry about reserved tags in limit_depth
Browse files Browse the repository at this point in the history
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: Paolo Valente <paolo.valente@linaro.org>
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
axboe committed May 10, 2018
1 parent 17a5119 commit 5514136
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions block/bfq-iosched.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
return;

if (data->flags & BLK_MQ_REQ_RESERVED) {
if (unlikely(!tags->nr_reserved_tags)) {
WARN_ON_ONCE(1);
return;
}
bt = &tags->breserved_tags;
} else
bt = &tags->bitmap_tags;
bt = &tags->bitmap_tags;

if (unlikely(bfqd->sb_shift != bt->sb.shift))
bfq_update_depths(bfqd, bt);
Expand Down

0 comments on commit 5514136

Please sign in to comment.