]> git.baikalelectronics.ru Git - kernel.git/commit
MD RAID10: Prep for DM RAID10 device replacement capability
authorJonathan Brassow <jbrassow@redhat.com>
Thu, 11 Oct 2012 02:38:58 +0000 (13:38 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 11 Oct 2012 02:38:58 +0000 (13:38 +1100)
commita7ee26f4a6a7e7066743a5db4179b679189cfcbb
treee8d5417df70e9ade3b8e021426db6f22b4067b95
parent354e630412957443e11c1d35d557eec5c016b0f1
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