Skip to content

Commit 5514136

Browse files
committed
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: Paolo Valente <paolo.valente@linaro.org> Reviewed-by: Omar Sandoval <osandov@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 17a5119 commit 5514136

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

block/bfq-iosched.c

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -542,14 +542,7 @@ static void bfq_limit_depth(unsigned int op, struct blk_mq_alloc_data *data)
542542
if (op_is_sync(op) && !op_is_write(op))
543543
return;
544544

545-
if (data->flags & BLK_MQ_REQ_RESERVED) {
546-
if (unlikely(!tags->nr_reserved_tags)) {
547-
WARN_ON_ONCE(1);
548-
return;
549-
}
550-
bt = &tags->breserved_tags;
551-
} else
552-
bt = &tags->bitmap_tags;
545+
bt = &tags->bitmap_tags;
553546

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

0 commit comments

Comments
 (0)