diff options
author | Hou Tao <houtao1@huawei.com> | 2020-04-27 15:12:50 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-07-01 15:25:36 +0200 |
commit | b5fc1e8bedf8ad2c6381e0df6331ad5686aca425 (patch) | |
tree | 7c792fb518f2d333ee732ff9293a020ae66f08de /block/blk-mq-debugfs.c | |
parent | blk-cgroup: clean up indentation (diff) | |
download | linux-b5fc1e8bedf8ad2c6381e0df6331ad5686aca425.tar.xz linux-b5fc1e8bedf8ad2c6381e0df6331ad5686aca425.zip |
blk-mq: remove pointless call of list_entry_rq() in hctx_show_busy_rq()
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>
Diffstat (limited to 'block/blk-mq-debugfs.c')
-rw-r--r-- | block/blk-mq-debugfs.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c index a2800bc56fb4..439b7c217638 100644 --- a/block/blk-mq-debugfs.c +++ b/block/blk-mq-debugfs.c @@ -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; } |