Message ID | 20170221170958.21845-3-jack@suse.cz (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/block/genhd.c b/block/genhd.c index 6cb9f3a34a92..f6c4d4400759 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -655,6 +655,7 @@ void del_gendisk(struct gendisk *disk) disk_part_iter_exit(&piter); invalidate_partition(disk, 0); + bdev_unhash_inode(disk_devt(disk)); set_capacity(disk, 0); disk->flags &= ~GENHD_FL_UP;