Skip to contentSkip to conversation

blk-tag: not touch rq->internal_tag

PATCH In review Ming Lei 2 participants 3 messages Jun 16, 2017 Block layer

lore
Share & tools
lore

Ming Lei

author
#0 lore raw

PATCH 1/1 blk-tag: not touch rq->internal_tag

rq->internal_tag is introduced only for blk-mq, so it isn't necessary to touch this variable in blk-tag.

---
 block/blk-tag.c | 1 -
 1 file changed, 1 deletion(-)
block/blk-tag.c +0 -1
index 07cc329fa4b0..bae1decb6ec3 100644
@@ -272,7 +272,6 @@ void blk_queue_end_tag(struct request_queue *q, struct request *rq)
 	list_del_init(&rq->queuelist);
 	rq->rq_flags &= ~RQF_QUEUED;
 	rq->tag = -1;
-	rq->internal_tag = -1;
 
 	if (unlikely(bqt->tag_index[tag] == NULL))
 		printk(KERN_ERR "%s: tag %d is missing\n",
Signature · 1 line
2.9.4
author
#2 lore raw
Quoted 7 lines · Christoph Hellwig
Quoted 4 lines · Ming Lei

rq->internal_tag is introduced only for blk-mq, so it isn't necessary to touch this variable in blk-tag.

It's not harmful either, is it?

Yes, it is not harmful, also not necessary.

Thanks,
Ming