Skip to content
Snippets Groups Projects
Commit 98214c67 authored by Ming Lei's avatar Ming Lei
Browse files

block: remove useless BUG_ON() in blk_mq_put_tag()

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2083917



commit ff47dbd1
Author: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Date:   Thu Jun 2 16:51:59 2022 +0900

    block: remove useless BUG_ON() in blk_mq_put_tag()

    Since the if condition in blk_mq_put_tag() checks that the tag to put is
    not a reserved one, the BUG_ON() check in the else branch checking if
    the tag is indeed a reserved one is useless. Remove it.

Signed-off-by: default avatarDamien Le Moal <damien.lemoal@opensource.wdc.com>
    Link: https://lore.kernel.org/r/20220602075159.1273366-1-damien.lemoal@opensource.wdc.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>

Signed-off-by: default avatarMing Lei <ming.lei@redhat.com>
parent 952744bd
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,6 @@ void blk_mq_put_tag(struct blk_mq_tags *tags, struct blk_mq_ctx *ctx,
BUG_ON(real_tag >= tags->nr_tags);
sbitmap_queue_clear(&tags->bitmap_tags, real_tag, ctx->cpu);
} else {
BUG_ON(tag >= tags->nr_reserved_tags);
sbitmap_queue_clear(&tags->breserved_tags, tag, ctx->cpu);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment