md: don't insist on valid event count for spare devices.
authorNeilBrown <neilb@suse.de>
Tue, 18 May 2010 00:17:09 +0000 (10:17 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 18 May 2010 05:28:01 +0000 (15:28 +1000)
commitbe6800a73aa2f3dc14744c3b80e676d189789f04
tree7db76b4488ad45e923223748c41fa8a61a09aa25
parenta8707c08f4f718bb0ed65499d3f43201f6e41455
md: don't insist on valid event count for spare devices.

Devices which know that they are spares do not really need to have
an event count that matches the rest of the array, so there are no
data-in-sync issues. It is enough that the uuid matches.
So remove the requirement that the event count is up-to-date.

We currently still write out and event count on spares, but this
allows us in a year or 3 to stop doing that completely.

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