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 0267e9c commit b8b364dCopy full SHA for b8b364d
arch/um/drivers/ubd_kern.c
@@ -799,7 +799,6 @@ static int ubd_open_dev(struct ubd *ubd_dev)
799
blk_queue_max_discard_sectors(ubd_dev->queue, UBD_MAX_REQUEST);
800
blk_queue_max_write_zeroes_sectors(ubd_dev->queue, UBD_MAX_REQUEST);
801
}
802
- blk_queue_flag_set(QUEUE_FLAG_NONROT, ubd_dev->queue);
803
return 0;
804
error:
805
os_close_file(ubd_dev->fd);
@@ -894,6 +893,7 @@ static int ubd_add(int n, char **error_out)
894
893
895
ubd_dev->queue = disk->queue;
896
+ blk_queue_flag_set(QUEUE_FLAG_NONROT, disk->queue);
897
blk_queue_write_cache(ubd_dev->queue, true, false);
898
disk->major = UBD_MAJOR;
899
disk->first_minor = n << UBD_SHIFT;
0 commit comments