We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e4e1ff commit f3c17dcCopy full SHA for f3c17dc
arch/um/drivers/ubd_kern.c
@@ -163,7 +163,6 @@ struct ubd {
163
struct cow cow;
164
struct platform_device pdev;
165
struct gendisk *disk;
166
- struct request_queue *queue;
167
struct blk_mq_tag_set tag_set;
168
spinlock_t lock;
169
};
@@ -892,10 +891,9 @@ static int ubd_add(int n, char **error_out)
892
891
err = PTR_ERR(disk);
893
goto out_cleanup_tags;
894
}
895
- ubd_dev->queue = disk->queue;
896
897
blk_queue_flag_set(QUEUE_FLAG_NONROT, disk->queue);
898
- blk_queue_write_cache(ubd_dev->queue, true, false);
+ blk_queue_write_cache(disk->queue, true, false);
899
disk->major = UBD_MAJOR;
900
disk->first_minor = n << UBD_SHIFT;
901
disk->minors = 1 << UBD_SHIFT;
0 commit comments