]> Git Repo - J-linux.git/commitdiff
kyber: make trace_block_rq call consistent with documentation
authorVincent Fu <[email protected]>
Wed, 4 Aug 2021 19:49:23 +0000 (19:49 +0000)
committerJens Axboe <[email protected]>
Fri, 6 Aug 2021 22:40:47 +0000 (16:40 -0600)
The kyber ioscheduler calls trace_block_rq_insert() *after* the request
is added to the queue but the documentation for trace_block_rq_insert()
says that the call should be made *before* the request is added to the
queue.  Move the tracepoint for the kyber ioscheduler so that it is
consistent with the documentation.

Signed-off-by: Vincent Fu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed by: Adam Manzanares <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
block/kyber-iosched.c

index 81e3279ecd5747a99f0902b37de4d1f02388d12d..15a8be57203d6420df3d73a37736adda1a168019 100644 (file)
@@ -596,13 +596,13 @@ static void kyber_insert_requests(struct blk_mq_hw_ctx *hctx,
                struct list_head *head = &kcq->rq_list[sched_domain];
 
                spin_lock(&kcq->lock);
+               trace_block_rq_insert(rq);
                if (at_head)
                        list_move(&rq->queuelist, head);
                else
                        list_move_tail(&rq->queuelist, head);
                sbitmap_set_bit(&khd->kcq_map[sched_domain],
                                rq->mq_ctx->index_hw[hctx->type]);
-               trace_block_rq_insert(rq);
                spin_unlock(&kcq->lock);
        }
 }
This page took 0.052672 seconds and 4 git commands to generate.