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.
2 parents fdb71c6 + 6110510 commit f26957aCopy full SHA for f26957a
block/genhd.c
@@ -613,7 +613,6 @@ void del_gendisk(struct gendisk *disk)
613
* Prevent new I/O from crossing bio_queue_enter().
614
*/
615
blk_queue_start_drain(q);
616
- blk_mq_freeze_queue_wait(q);
617
618
if (!(disk->flags & GENHD_FL_HIDDEN)) {
619
sysfs_remove_link(&disk_to_dev(disk)->kobj, "bdi");
@@ -637,6 +636,8 @@ void del_gendisk(struct gendisk *disk)
637
636
pm_runtime_set_memalloc_noio(disk_to_dev(disk), false);
638
device_del(disk_to_dev(disk));
639
+ blk_mq_freeze_queue_wait(q);
640
+
641
blk_throtl_cancel_bios(disk);
642
643
blk_sync_queue(q);
0 commit comments