md/raid10: Remove extras after reshape to smaller number of devices.
authorNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:33 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:33 +0000 (13:55 +1000)
commit63aced61023a054825ffd6e33ac1ab99036dadd2
treeb41a4cde223c78ec787df3b02d839e1242d2a9e5
parentda7613b8b042ab1d3ea55459ed97301e4a2097bb
md/raid10: Remove extras after reshape to smaller number of devices.

When a reshape which reduced the number of devices finishes
we must remove the extra devices.

So ensure  that raid10_remove_disk won't try to keep them, and
have raid10_finish_reshape clear the 'in_sync' flag.  Then
remove_and_add_spares will be able to remove them.

Reported-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c