From 84f6d588b5e6ae33a736514a794f0b04527ce03a Mon Sep 17 00:00:00 2001 From: Xiaoguang Wang Date: Tue, 23 Oct 2018 22:30:50 +0800 Subject: [PATCH] blk-mq: place trace_block_getrq() in correct place commit d6f1dda27251909a27b8d8aacb498628a1047978 upstream. trace_block_getrq() is to indicate a request struct has been allocated for queue, so put it in right place. Reviewed-by: Jianchao Wang Signed-off-by: Xiaoguang Wang Signed-off-by: Jens Axboe Signed-off-by: Joseph Qi Reviewed-by: Xiaoguang Wang --- block/blk-mq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/block/blk-mq.c b/block/blk-mq.c index 511b67966be9..ff00f7b6f5cd 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1882,8 +1882,6 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio) rq_qos_throttle(q, bio, NULL); - trace_block_getrq(q, bio, bio->bi_opf); - rq = blk_mq_get_request(q, bio, bio->bi_opf, &data); if (unlikely(!rq)) { rq_qos_cleanup(q, bio); @@ -1892,6 +1890,8 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio) return BLK_QC_T_NONE; } + trace_block_getrq(q, bio, bio->bi_opf); + rq_qos_track(q, rq, bio); cookie = request_to_qc_t(data.hctx, rq); -- GitLab