summaryrefslogtreecommitdiffstats
path: root/drivers/memstick
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-07-28 03:39:25 +0200
committerNeilBrown <neilb@suse.de>2011-07-28 03:39:25 +0200
commit5e5702898e93eee7d69b6efde109609a89a61001 (patch)
tree87f47cc7e66da78befd16af6d479761b70f7adea /drivers/memstick
parentmd/raid10: simplify read error handling during recovery. (diff)
downloadlinux-5e5702898e93eee7d69b6efde109609a89a61001.tar.xz
linux-5e5702898e93eee7d69b6efde109609a89a61001.zip
md/raid10: Handle read errors during recovery better.
Currently when we get a read error during recovery, we simply abort the recovery. Instead, repeat the read in page-sized blocks. On successful reads, write to the target. On read errors, record a bad block on the destination, and only if that fails do we abort the recovery. As we now retry reads we need to know where we read from. This was in bi_sector but that can be changed during a read attempt. So store the correct from_addr and to_addr in the r10_bio for later access. Signed-off-by: NeilBrown<neilb@suse.de>
Diffstat (limited to 'drivers/memstick')
0 files changed, 0 insertions, 0 deletions