]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: preferentially read from replacement device if possible.
authorNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 9 Nov 2011 00:32:09 +0000 (11:32 +1100)
commitbbc14af4439c821df18e4091878b9ab7c93d654f
tree11634d90fa88f813a876c810456ffb9ab367036f
parente242333643e0599fefbe39460ba9ed6328de810a
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