blk-mq: remove pointless call of list_entry_rq() in hctx_show_busy_rq()
authorHou Tao <houtao1@huawei.com>
Mon, 27 Apr 2020 13:12:50 +0000 (21:12 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Jul 2020 13:25:36 +0000 (07:25 -0600)
Just use rq directly, the usage of list_entry_rq() doesn't make any
sense.

Signed-off-by: Hou Tao <houtao1@huawei.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c

index a2800bc..439b7c2 100644 (file)
@@ -401,8 +401,7 @@ static bool hctx_show_busy_rq(struct request *rq, void *data, bool reserved)
        const struct show_busy_params *params = data;
 
        if (rq->mq_hctx == params->hctx)
-               __blk_mq_debugfs_rq_show(params->m,
-                                        list_entry_rq(&rq->queuelist));
+               __blk_mq_debugfs_rq_show(params->m, rq);
 
        return true;
 }