block: use bdev_get_queue() in bio.c
authorPavel Begunkov <asml.silence@gmail.com>
Thu, 14 Oct 2021 14:03:28 +0000 (15:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Jul 2022 14:34:57 +0000 (16:34 +0200)
commiteb79d1353cd0f2c04e1fc6311d7ce1d40a69b790
tree9f732d23c11fe99ab0c769e0db09897e8c414b46
parentdf1ec53252d5b5b26ea49e30438741c9a6d89857
block: use bdev_get_queue() in bio.c

[ Upstream commit 3caee4634be68e755d2fb130962f1623661dbd5b ]

Convert bdev->bd_disk->queue to bdev_get_queue(), it's uses a cached
queue pointer and so is faster.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/85c36ea784d285a5075baa10049e6b59e15fb484.1634219547.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
block/bio.c