NeilBrown 908f4fbd26 md/raid5: be more thorough in calculating 'degraded' value.
When an array is being reshaped to change the number of devices,
the two halves can be differently degraded.  e.g. one could be
missing a device and the other not.

So we need to be more careful about calculating the 'degraded'
attribute.

Instead of just inc/dec at appropriate times, perform a full
re-calculation examining both possible cases.  This doesn't happen
often so it not a big cost, and we already have most of the code to
do it.

Signed-off-by: NeilBrown <neilb@suse.de>
2011-12-23 10:17:50 +11:00
..
2011-12-23 10:17:50 +11:00
2011-10-31 20:19:09 +00:00
2011-08-02 12:32:01 +01:00
2011-10-31 20:19:04 +00:00
2010-08-12 04:14:11 +01:00
2011-08-02 12:32:02 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:35 +00:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2007-10-20 02:01:26 +01:00
2010-08-12 04:14:12 +01:00
2011-10-31 20:19:04 +00:00
2011-10-31 20:21:18 +00:00
2011-10-31 20:21:18 +00:00