Skip to content

Commit 8789009

Browse files
Baolin Wangaxboe
authored andcommitted
blk-mq: remove redundant validation in __blk_mq_end_request()
We've already validated the 'q->elevator' before calling ->ops.completed_request() in blk_mq_sched_completed_request(), thus no need to validate rq->internal_tag again. Rmove it. Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 106e71c commit 8789009

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎block/blk-mq.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,7 @@ inline void __blk_mq_end_request(struct request *rq, blk_status_t error)
544544
blk_stat_add(rq, now);
545545
}
546546

547-
if (rq->internal_tag != BLK_MQ_NO_TAG)
548-
blk_mq_sched_completed_request(rq, now);
547+
blk_mq_sched_completed_request(rq, now);
549548

550549
blk_account_io_done(rq, now);
551550

0 commit comments

Comments
 (0)