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: Chaitanya Kulkarni <kch@nvidia.com> Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
cf6d6238cd
commit
859897c3fb
|
@ -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;
|
||||
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue