]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: preferentially read from replacement device if possible.
authorNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:54 +0000 (10:17 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 22 Dec 2011 23:17:54 +0000 (10:17 +1100)
commit5148d7d7a606c63c40319029e619e711a7ac4881
treee2d8dc88c99ecc14d6d87596d95b3de9b9dc87c9
parent3d66f2441c9ffcae14bc9aa4708b7714de97a287
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