md/raid6: Fix raid-6 read-error correction in degraded state
authorGabriele A. Trombetti <g.trombetti.lkrnl1213@logicschema.com>
Wed, 28 Apr 2010 01:51:17 +0000 (11:51 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 7 May 2010 11:10:35 +0000 (21:10 +1000)
commit87aa63000c484bfb9909989316f615240dfee018
treeebadeba1c1c03b28e8c2c9036542bd6b75bb9837
parent722154e4cacf015161efe60009ae9be23d492296
md/raid6: Fix raid-6 read-error correction in degraded state

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>
Cc: stable@kernel.org
drivers/md/raid5.c