History

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.

Damien Le Moal committed 4 years ago

Commit ff47dbd1 parent b81c14c1 file · +0 −1Browse files

Unified · Split

block/blk-mq-tag.c+0−1
@@ -228,7 +228,6 @@ void blk_mq_put_tag(struct blk_mq_tags *tags, struct blk_mq_ctx *ctx, · 227 unmodified lines
228228 BUG_ON(real_tag >= tags->nr_tags);
229229 sbitmap_queue_clear(&tags->bitmap_tags, real_tag, ctx->cpu);
230230 } else {
231− BUG_ON(tag >= tags->nr_reserved_tags);
232231 sbitmap_queue_clear(&tags->breserved_tags, tag, ctx->cpu);
233232 }
234233 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t