# Re: \[md PATCH 15/36\] md/raid1: improve handling of read failure during recovery.

- From: Namhyung Kim \<hidden\>
- Date: 2011-07-27 15:45:15 
- List: linux-raid
- Page: https://ratatoskr.run/linux-raid/2011/07/6616880
- Thread: https://ratatoskr.run/linux-raid/2011/07/6616880/t.md

```text
NeilBrown [ref] writes:

> If we cannot read a block from anywhere during recovery, there is
> now a better approach than just giving up.
> We can record a bad block on each device and keep going - being
> careful not to clear the bad block when a write succeeds as it might -
> it will be a write of incorrect data.
>
> We have now reached the state where - for raid1 - we only call
> md_error if md_set_badblocks has failed.
>
> Signed-off-by: NeilBrown <redacted>

Reviewed-by: Namhyung Kim <redacted>
```
