]> 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)
commit0f0acce2c61c6715afc0c34635c607bd62eadef1
tree5e6c3cfeb122da72e1bfa3bea07d8f16f453dc9f
parent39a5842028d4f77ed087d3fb77b71b3836fc9fc8
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