md: remove the autoscan partition re-read
authorChristoph Hellwig <hch@lst.de>
Sat, 6 Jun 2020 12:56:41 +0000 (14:56 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 16 Jul 2020 13:35:16 +0000 (15:35 +0200)
devfs is long gone, and autoscan works just fine without this these days.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: NeilBrown <neilb@suse.de>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/md/md-autodetect.c

index 0eb7462..6bc9b73 100644 (file)
@@ -240,16 +240,6 @@ static void __init md_setup_drive(void)
                        err = ksys_ioctl(fd, RUN_ARRAY, 0);
                if (err)
                        printk(KERN_WARNING "md: starting md%d failed\n", minor);
-               else {
-                       /* reread the partition table.
-                        * I (neilb) and not sure why this is needed, but I cannot
-                        * boot a kernel with devfs compiled in from partitioned md
-                        * array without it
-                        */
-                       ksys_close(fd);
-                       fd = ksys_open(name, 0, 0);
-                       ksys_ioctl(fd, BLKRRPART, 0);
-               }
                ksys_close(fd);
        }
 }