summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2013-11-20 02:59:10 +0100
committerJens Axboe <axboe@kernel.dk>2013-11-20 03:00:45 +0100
commit01b983c9fcfeea5774ca2df2e167b68c3c299278 (patch)
treebe2bdbbd77472f73ec758f69b5320216c101a90b /block
parentvirtio-blk: virtqueue_kick() must be ordered with other virtqueue operations (diff)
downloadlinux-01b983c9fcfeea5774ca2df2e167b68c3c299278.tar.xz
linux-01b983c9fcfeea5774ca2df2e167b68c3c299278.zip
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')
-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 32593dba4684..cdc629cf075b 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);