md: when a level change reduces the number of devices, remove the excess.
commite5cac86942fcfdca931c219723028207954c2cce
authorNeilBrown <neilb@suse.de>
Mon, 3 Aug 2009 00:59:55 +0000 (3 10:59 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 16 Aug 2009 21:18:46 +0000 (16 14:18 -0700)
tree348b107a158d71363a1237fa533a842670a83ce7
parent886aa89355b0034c2325708441801350e16a085e
md: when a level change reduces the number of devices, remove the excess.

commit 3a981b03f38dc3b8a69b77cbc679e66c1318a44a upstream.

When an array is changed from RAID6 to RAID5, fewer drives are
needed.  So any device that is made superfluous by the level
conversion must be marked as not-active.
For the RAID6->RAID5 conversion, this will be a drive which only
has 'Q' blocks on it.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/md.c