md/raid6: Fix raid-6 read-error correction in degraded state
commitc38090e259e2311c1a8bfac4dbc60bbdb70f4f08
authorGabriele A. Trombetti <g.trombetti.lkrnl1213@logicschema.com>
Wed, 28 Apr 2010 01:51:17 +0000 (28 11:51 +1000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 12 May 2010 21:57:15 +0000 (12 14:57 -0700)
tree6ee1d7f0745d30c90a22142d9bb244a6440ca81d
parent487fc21950d1a6a928b7438ecfc6455e6ee3eb77
md/raid6: Fix raid-6 read-error correction in degraded state

commit 87aa63000c484bfb9909989316f615240dfee018 upstream.

Fix: Raid-6 was not trying to correct a read-error when in
singly-degraded state and was instead dropping one more device, going to
doubly-degraded state. This patch fixes this behaviour.

Tested-by: Janos Haar <janos.haar@netcenter.hu>
Signed-off-by: Gabriele A. Trombetti <g.trombetti.lkrnl1213@logicschema.com>
Reported-by: Janos Haar <janos.haar@netcenter.hu>
Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/md/raid5.c