md/raid1: allow fix_read_error to read from recovering device.
authormajianpeng <majianpeng@gmail.com>
Tue, 22 May 2012 03:55:03 +0000 (13:55 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 22 May 2012 03:55:03 +0000 (13:55 +1000)
commitda8840a747c0dbf49506ec906757a6b87b9741e9
tree127835ac03aaf4f3ecd188c665a9970047174c26
parent4fa2f327681808f653711e14203a42cf4644bda0
md/raid1: allow fix_read_error to read from recovering device.

When attempting to fix a read error, it is acceptable to read from a
device that is recovering, provided the recovery has got past the
place we are reading from.  This makes the test for "can we read from
here" the same as the test in read_balance.

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