Skip to content

Commit

Permalink
blk-mq: add blktrace insert event trace
Browse files Browse the repository at this point in the history
We need it to make 'btt' from blktrace happy, otherwise
we are missing one state transition.

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
axboe committed Nov 20, 2013
1 parent f02b9ac commit 01b983c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions block/blk-mq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 01b983c

Please sign in to comment.