android_kernel_xiaomi_sm8350/include/linux/raid
NeilBrown 4044ba58dd md: don't retry recovery of raid1 that fails due to error on source drive.
If a raid1 has only one working drive and it has a sector which
gives an error on read, then an attempt to recover onto a spare will
fail, but as the single remaining drive is not removed from the
array, the recovery will be immediately re-attempted, resulting
in an infinite recovery loop.

So detect this situation and don't retry recovery once an error
on the lone remaining drive is detected.

Allow recovery to be retried once every time a spare is added
in case the problem wasn't actually a media error.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-01-09 08:31:11 +11:00
..
bitmap.h Improve setting of "events_cleared" for write-intent bitmaps. 2008-06-28 08:31:22 +10:00
Kbuild
linear.h md: Convert remaining 1k representations in linear.c to sectors. 2008-10-13 11:55:12 +11:00
md_k.h md: don't retry recovery of raid1 that fails due to error on source drive. 2009-01-09 08:31:11 +11:00
md_p.h md: need another print_sb for mdp_superblock_1 2009-01-09 08:31:08 +11:00
md_u.h
md.h md: remove space after function name in declaration and call. 2008-10-13 11:55:12 +11:00
multipath.h
raid0.h md: raid0: make hash_spacing and preshift sector-based. 2009-01-09 08:31:08 +11:00
raid1.h
raid5.h md: replace R5_WantPrexor with R5_WantDrain, add 'prexor' reconstruct_states 2008-06-28 08:32:06 +10:00
raid10.h
xor.h