From: Jens Axboe Date: Wed, 9 May 2018 19:12:10 +0000 (-0600) Subject: bfq-iosched: don't worry about reserved tags in limit_depth X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=55141366de8cb281ee6730a810c7602dee403e92;p=linux.git 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 Reviewed-by: Omar Sandoval Signed-off-by: Jens Axboe --- diff --git a/block/bfq-iosched.c b/block/bfq-iosched.c index eefd8a4bc9361..db38e88a56708 100644 --- a/block/bfq-iosched.c +++ b/block/bfq-iosched.c @@ -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);