There is a 1:1 relation between gendisk and request_queues once the
gendisk is allocated, so there is no need to go out and check the
queue pointer.
Signed-off-by: Christoph Hellwig <hch@lst.de>
current->bio_list = bio_list_on_stack;
do {
- struct request_queue *q = bdev_get_queue(bio->bi_bdev);
+ struct gendisk *disk = bio->bi_bdev->bd_disk;
struct bio_list lower, same;
/*
bio_list_init(&lower);
bio_list_init(&same);
while ((bio = bio_list_pop(&bio_list_on_stack[0])) != NULL)
- if (q == bdev_get_queue(bio->bi_bdev))
+ if (bio->bi_bdev->bd_disk == disk)
bio_list_add(&same, bio);
else
bio_list_add(&lower, bio);