]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MD RAID10: Prep for DM RAID10 device replacement capability
authorJonathan Brassow <jbrassow@redhat.com>
Mon, 24 Sep 2012 06:41:28 +0000 (16:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 24 Sep 2012 06:41:28 +0000 (16:41 +1000)
commit137b388b07d1289f02dea427020e85f7c45d9a7e
tree6f1dbb3ece3c318e0eef3882eed13ca2a13db597
parent120633ef3275b79642ad48cd4bc26452087d3cfd
MD RAID10: Prep for DM RAID10 device replacement capability

MD RAID10:  Fix a couple potential kernel panics if RAID10 is used by dm-raid

When device-mapper uses the RAID10 personality through dm-raid.c, there is no
'gendisk' structure in mddev and some sysfs information is also not populated.

This patch avoids touching those non-existent structures.

Signed-off-by: Jonathan Brassow <jbrassow@rehdat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c
drivers/md/raid10.c