Skip to content

Commit a1d6bc0

Browse files
author
Christoph Hellwig
committed
md: remove the autoscan partition re-read
devfs is long gone, and autoscan works just fine without this these days. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: NeilBrown <[email protected]> Acked-by: Song Liu <[email protected]> Acked-by: Linus Torvalds <[email protected]>
1 parent d82fa81 commit a1d6bc0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

drivers/md/md-autodetect.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -240,16 +240,6 @@ static void __init md_setup_drive(void)
240240
err = ksys_ioctl(fd, RUN_ARRAY, 0);
241241
if (err)
242242
printk(KERN_WARNING "md: starting md%d failed\n", minor);
243-
else {
244-
/* reread the partition table.
245-
* I (neilb) and not sure why this is needed, but I cannot
246-
* boot a kernel with devfs compiled in from partitioned md
247-
* array without it
248-
*/
249-
ksys_close(fd);
250-
fd = ksys_open(name, 0, 0);
251-
ksys_ioctl(fd, BLKRRPART, 0);
252-
}
253243
ksys_close(fd);
254244
}
255245
}

0 commit comments

Comments
 (0)