diff options
author | Christoph Hellwig <hch@lst.de> | 2020-06-06 14:56:41 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2020-07-16 15:35:16 +0200 |
commit | a1d6bc018911390274e3904bdd28240cd96ddc54 (patch) | |
tree | 6acaf390549cf8da7f01be53db9976497ba7e460 /drivers | |
parent | md: replace the RAID_AUTORUN ioctl with a direct function call (diff) | |
download | linux-a1d6bc018911390274e3904bdd28240cd96ddc54.tar.xz linux-a1d6bc018911390274e3904bdd28240cd96ddc54.zip |
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 <hch@lst.de>
Reviewed-by: NeilBrown <neilb@suse.de>
Acked-by: Song Liu <song@kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/md-autodetect.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/md/md-autodetect.c b/drivers/md/md-autodetect.c index 0eb746211ed5..6bc9b734eee6 100644 --- a/drivers/md/md-autodetect.c +++ b/drivers/md/md-autodetect.c @@ -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); } } |