]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid1: allow fix_read_error to read from recovering device.
authormajianpeng <majianpeng@gmail.com>
Tue, 24 Apr 2012 00:57:52 +0000 (10:57 +1000)
committerNeilBrown <neilb@suse.de>
Tue, 24 Apr 2012 00:57:52 +0000 (10:57 +1000)
commitcc366f743ad9eaae8c4b61bd6b63988c0452f444
treeea90b9bd771c108102c1776f4ba5aadf860e8327
parent4ae18ea85ae287e34480549c8aab59ca837536ff
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