blk-tag: not touch rq->internal_tag
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.
Signed-off-by Ming Lei <[email protected]>
--- block/blk-tag.c | 1 - 1 file changed, 1 deletion(-)
block/blk-tag.c +0 -1
@@ -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
Quoted 4 lines · Ming Lei
rq->internal_tagis introduced only for blk-mq, so it isn't necessary to touch this variable in blk-tag.Signed-off-by Ming Lei <[email protected]>
It's not harmful either, is it?
Quoted 7 lines · Christoph Hellwig
Quoted 4 lines · Ming Lei
rq->internal_tagis introduced only for blk-mq, so it isn't necessary to touch this variable in blk-tag.Signed-off-by Ming Lei <[email protected]>It's not harmful either, is it?
Yes, it is not harmful, also not necessary.
Thanks,
Ming