Skip to content

Commit

Permalink
blk-mq: remove pointless call of list_entry_rq() in hctx_show_busy_rq()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hou Tao authored and Jens Axboe committed Jul 1, 2020
1 parent 0b8cc25 commit b5fc1e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions block/blk-mq-debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5fc1e8

Please sign in to comment.