Commit 859897c3 authored by Pavel Begunkov's avatar Pavel Begunkov Committed by Jens Axboe

block: convert leftovers to bdev_get_queue

Convert bdev->bd_disk->queue to bdev_get_queue(), which is faster.
Apparently, there are a few such spots in block that got lost during
rebases.
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent cf6d6238
...@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(submit_bio); ...@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(submit_bio);
*/ */
int bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags) int bio_poll(struct bio *bio, struct io_comp_batch *iob, unsigned int flags)
{ {
struct request_queue *q = bio->bi_bdev->bd_disk->queue; struct request_queue *q = bdev_get_queue(bio->bi_bdev);
blk_qc_t cookie = READ_ONCE(bio->bi_cookie); blk_qc_t cookie = READ_ONCE(bio->bi_cookie);
int ret; int ret;
......
...@@ -383,7 +383,7 @@ void __blk_queue_split(struct request_queue *q, struct bio **bio, ...@@ -383,7 +383,7 @@ void __blk_queue_split(struct request_queue *q, struct bio **bio,
*/ */
void blk_queue_split(struct bio **bio) void blk_queue_split(struct bio **bio)
{ {
struct request_queue *q = (*bio)->bi_bdev->bd_disk->queue; struct request_queue *q = bdev_get_queue((*bio)->bi_bdev);
unsigned int nr_segs; unsigned int nr_segs;
if (blk_may_split(q, *bio)) if (blk_may_split(q, *bio))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment