Blob Blame History Raw
From: Hou Tao <houtao1@huawei.com>
Date: Mon, 27 Apr 2020 21:12:50 +0800
Subject: [PATCH] blk-mq: remove pointless call of list_entry_rq() in
 hctx_show_busy_rq()
References: bsc#1175995,jsc#SLE-15608
Git-commit: b5fc1e8bedf8ad2c6381e0df6331ad5686aca425
Patch-mainline: v5.9-rc1

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>
Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 block/blk-mq-debugfs.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 129bbf851ca3..ad04718a5325 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -402,8 +402,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;
 }
-- 
2.16.4