Skip to content

Commit d6f1dda

Browse files
Xiaoguang Wangaxboe
authored andcommitted
blk-mq: place trace_block_getrq() in correct place
trace_block_getrq() is to indicate a request struct has been allocated for queue, so put it in right place. Reviewed-by: Jianchao Wang <jianchao.w.wang@oracle.com> Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent bf50545 commit d6f1dda

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

block/blk-mq.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1850,8 +1850,6 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio)
18501850

18511851
rq_qos_throttle(q, bio, NULL);
18521852

1853-
trace_block_getrq(q, bio, bio->bi_opf);
1854-
18551853
rq = blk_mq_get_request(q, bio, bio->bi_opf, &data);
18561854
if (unlikely(!rq)) {
18571855
rq_qos_cleanup(q, bio);
@@ -1860,6 +1858,8 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio)
18601858
return BLK_QC_T_NONE;
18611859
}
18621860

1861+
trace_block_getrq(q, bio, bio->bi_opf);
1862+
18631863
rq_qos_track(q, rq, bio);
18641864

18651865
cookie = request_to_qc_t(data.hctx, rq);

0 commit comments

Comments
 (0)