[PATCH 3/3] block/md: fix md autodetection
- From: Tejun Heo <teheo@xxxxxxx>
- Date: Mon, 10 Nov 2008 15:30:47 +0900
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/
- References:
- [PATCH 1/3] block: fix add_partition() error path
- From: Tejun Heo
- [PATCH] block: make add_partition() return pointer to hd_struct
- From: Tejun Heo
- [PATCH 1/3] block: fix add_partition() error path
- Prev by Date: [PATCH] block: make add_partition() return pointer to hd_struct
- Next by Date: Re: sharing interrupt between PCI device
- Previous by thread: [PATCH] block: make add_partition() return pointer to hd_struct
- Next by thread: Re: [PATCH 1/3] block: fix add_partition() error path
- Index(es):
Relevant Pages
|