md/raid10: share pages between read and write bio's during recovery
authorNamhyung Kim <namhyung@gmail.com>
Mon, 18 Jul 2011 07:38:49 +0000 (17:38 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 18 Jul 2011 07:38:49 +0000 (17:38 +1000)
commitc65060ad4274f70048d62e0a86332cd3fd23f28d
tree5e6c3cfeb122da72e1bfa3bea07d8f16f453dc9f
parent778ca01852e6cc9ff335119b37a1938a978df384
md/raid10: share pages between read and write bio's during recovery

When performing a recovery, only first 2 slots in r10_bio are in use,
for read and write respectively. However all of pages in the write bio
are never used and just replaced to read bio's when the read completes.

Get rid of those unused pages and share read pages properly.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c