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.
Unified · Split
| @@ -228,7 +228,6 @@ void blk_mq_put_tag(struct blk_mq_tags *tags, struct blk_mq_ctx *ctx, · 227 unmodified lines | ||
| 228 | 228 | BUG_ON(real_tag >= tags->nr_tags); |
| 229 | 229 | sbitmap_queue_clear(&tags->bitmap_tags, real_tag, ctx->cpu); |
| 230 | 230 | } else { |
| 231 | − BUG_ON(tag >= tags->nr_reserved_tags); | |
| 232 | 231 | sbitmap_queue_clear(&tags->breserved_tags, tag, ctx->cpu); |
| 233 | 232 | } |
| 234 | 233 | } |