md/raid5: improve removal of extra devices after reshape.
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)
commitda7613b8b042ab1d3ea55459ed97301e4a2097bb
tree5a6fe23c5fbbb15f3ff459752807a00ddf121c55
parent0c098220e2320c1f0c9339d0ff05c5e04672133a
md/raid5: improve removal of extra devices after reshape.

After a reshape which reduced the number of devices we need
to disconnect the extra devices.
The code for this doesn't currently handle 'replacement' devices.
It is very unlikely that such devices will be present, but it is
safest to handle them anyway.

So simplify the handling.  Just clear In_sync and leave it
to remove_and_add_spaces (which will be called soon) to do
the real works.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid5.c