]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8bf320fe8528ffe0e01241a4de619d670c8a0f0e
tree5e6c3cfeb122da72e1bfa3bea07d8f16f453dc9f
parent812dc74bfb6dd2ce2e629d58a392f5ef03f6b553
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