]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit303552a7ae8dc71a88834fcdd04cdd1e8eb14f3b
tree23c672053c6ff1cf92119e7a18d2f5b83dbab5f2
parent42b18525e03cf61198479a1e5a1678592c3d8e53
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