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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1080,7 +1080,7 @@ EXPORT_SYMBOL(submit_bio);
 */
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);
	int ret;

+1 −1
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ void __blk_queue_split(struct request_queue *q, 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;

	if (blk_may_split(q, *bio))