Merge tag 'for-5.17/block-2022-01-11' of git://git.kernel.dk/linux-block
[sfrench/cifs-2.6.git] / drivers / md / md.c
index 41d6e2383517bbf940210d15f2110d96fd421e91..55f9d9caff31fd60616aa4dc9043e27289348747 100644 (file)
@@ -5708,11 +5708,6 @@ static int md_alloc(dev_t dev, char *name)
        mddev->queue = disk->queue;
        blk_set_stacking_limits(&mddev->queue->limits);
        blk_queue_write_cache(mddev->queue, true, true);
-       /* Allow extended partitions.  This makes the
-        * 'mdp' device redundant, but we can't really
-        * remove it now.
-        */
-       disk->flags |= GENHD_FL_EXT_DEVT;
        disk->events |= DISK_EVENT_MEDIA_CHANGE;
        mddev->gendisk = disk;
        error = add_disk(disk);