Skip to content

Commit f3c17dc

Browse files
Christoph Hellwigaxboe
authored andcommitted
ubd: remove the queue pointer in struct ubd
No need for it now, everything goes through the gendisk. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Richard Weinberger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
1 parent 5e4e1ff commit f3c17dc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/um/drivers/ubd_kern.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ struct ubd {
163163
struct cow cow;
164164
struct platform_device pdev;
165165
struct gendisk *disk;
166-
struct request_queue *queue;
167166
struct blk_mq_tag_set tag_set;
168167
spinlock_t lock;
169168
};
@@ -892,10 +891,9 @@ static int ubd_add(int n, char **error_out)
892891
err = PTR_ERR(disk);
893892
goto out_cleanup_tags;
894893
}
895-
ubd_dev->queue = disk->queue;
896894

897895
blk_queue_flag_set(QUEUE_FLAG_NONROT, disk->queue);
898-
blk_queue_write_cache(ubd_dev->queue, true, false);
896+
blk_queue_write_cache(disk->queue, true, false);
899897
disk->major = UBD_MAJOR;
900898
disk->first_minor = n << UBD_SHIFT;
901899
disk->minors = 1 << UBD_SHIFT;

0 commit comments

Comments
 (0)