md/raid456: When read error cannot be recovered, record bad block
authormajianpeng <majianpeng@gmail.com>
Tue, 3 Jul 2012 05:57:02 +0000 (15:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 3 Jul 2012 05:57:02 +0000 (15:57 +1000)
commit2e8ac30312973dd20e6807365349ecb1c7e0ea45
tree23c672053c6ff1cf92119e7a18d2f5b83dbab5f2
parent0232605d987d8230b254aa139805bbb56a7ca30c
md/raid456: When read error cannot be recovered, record bad block

We may not be able to fix a bad block if:
 - the array is degraded
 - the over-write fails.

In these cases we currently eject the device, but we should
record a bad block if possible.

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