|
@@ -181,7 +181,7 @@ found_tag:
|
|
void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, struct blk_mq_tags *tags,
|
|
void blk_mq_put_tag(struct blk_mq_hw_ctx *hctx, struct blk_mq_tags *tags,
|
|
struct blk_mq_ctx *ctx, unsigned int tag)
|
|
struct blk_mq_ctx *ctx, unsigned int tag)
|
|
{
|
|
{
|
|
- if (tag >= tags->nr_reserved_tags) {
|
|
|
|
|
|
+ if (!blk_mq_tag_is_reserved(tags, tag)) {
|
|
const int real_tag = tag - tags->nr_reserved_tags;
|
|
const int real_tag = tag - tags->nr_reserved_tags;
|
|
|
|
|
|
BUG_ON(real_tag >= tags->nr_tags);
|
|
BUG_ON(real_tag >= tags->nr_tags);
|