]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: preferentially read from replacement device if possible.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:06 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:06 +0000 (14:27 +1100)
commit02679d1599744618abdee1df7c3df7596fbae6fa
treecd47e245b5f6216bc9e6006bad82c952a292befa
parent81e20801985c2a172865827af6c1959c2d86d33c
md/raid10: preferentially read from replacement device if possible.

When reading (for array reads, not for recovery etc) we read from the
replacement device if it has recovered far enough.
This requires storing the chosen rdev in the 'r10_bio' so we can make
sure to drop the ref on the right device when the read finishes.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c