[PATCH 3/3] block/md: fix md autodetection



Block ext devt conversion missed md_autodetect_dev() call in
rescan_partitions() leaving md autodetect unable to see partitions.
Fix it.

Signed-off-by: Tejun Heo <tj@xxxxxxxxxx>
Cc: Neil Brown <neilb@xxxxxxx>
---
Oops, I forgot 2/3 in the subject of the second patch. Sorry.

fs/partitions/check.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: work/fs/partitions/check.c
===================================================================
--- work.orig/fs/partitions/check.c
+++ work/fs/partitions/check.c
@@ -577,7 +577,7 @@ int rescan_partitions(struct gendisk *di
}
#ifdef CONFIG_BLK_DEV_MD
if (state->parts[p].flags & ADDPART_FLAG_RAID)
- md_autodetect_dev(bdev->bd_dev+p);
+ md_autodetect_dev(part_to_dev(part)->devt);
#endif
}
kfree(state);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: Conan the Vegetarian
    ... I can fix that." ... Oops, I slouch corrected: ... "Your blood isn't leaving your body properly. ...
    (rec.arts.sf.written)
  • Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates
    ... this should fix. ... The DVB subsystem has NEVER been hot-unpluggable. ... Sure, this will prevent an OOPS on some, and hopefully all devices... ... applied to that driver As far as I ...
    (Linux-Kernel)
  • Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates
    ... Fix 3/3 for bug 7819: ... The bug that these patches fix has been around throughout the entire ... Sure, this will prevent an OOPS on some, and hopefully all devices... ...
    (Linux-Kernel)
  • Re: [v4l-dvb-maintainer] [GIT PATCHES] V4L/DVB updates
    ... Fix 3/3 for bug 7819: ... The bug that these patches fix has been around throughout the entire ... Sure, this will prevent an OOPS on some, and hopefully all devices... ...
    (Linux-Kernel)
  • Re: Problem after converting FDisk Partitions to LVM
    ... partitions through LVM depend on a specific fix level on them or is it supposed to be successful on fresh vintage W4.0 installations as well? ... For evaluation purposes I had created a few partitions with Warp4.0 and FDISK 14.082 on an empty test HDD and installed 3 instances of unfixed W4.0 on it. ... Then I added eCS2.0b3 to the extended one beyond the 8032MB limit, which offered to modify the existing W4.0 partitions to be usable with the LVM boot manager instead. ...
    (comp.os.os2.setup.storage)