summaryrefslogtreecommitdiffstats
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-11-19 18:59:10 -0700
committerJens Axboe <axboe@kernel.dk>2013-11-19 19:00:45 -0700
commit01b983c9fcfeea5774ca2df2e167b68c3c299278 (patch)
treebe2bdbbd77472f73ec758f69b5320216c101a90b /block/blk-mq.c
parentf02b9ac35a47dff745c7637fbc095f01cc03646e (diff)
downloadop-kernel-dev-01b983c9fcfeea5774ca2df2e167b68c3c299278.zip
op-kernel-dev-01b983c9fcfeea5774ca2df2e167b68c3c299278.tar.gz
blk-mq: add blktrace insert event trace
We need it to make 'btt' from blktrace happy, otherwise we are missing one state transition. Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-mq.c')
-rw-r--r--block/blk-mq.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 32593db..cdc629c 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -721,6 +721,8 @@ static void __blk_mq_insert_request(struct blk_mq_hw_ctx *hctx,
{
struct blk_mq_ctx *ctx = rq->mq_ctx;
+ trace_block_rq_insert(hctx->queue, rq);
+
list_add_tail(&rq->queuelist, &ctx->rq_list);
blk_mq_hctx_mark_pending(hctx, ctx);
OpenPOWER on IntegriCloud