]> git.baikalelectronics.ru Git - kernel.git/commit
md: write bitmap information to devices that are undergoing recovery.
authorNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 03:27:02 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 31 Mar 2009 03:27:02 +0000 (14:27 +1100)
commit403d0abc0879b128f3d6258906095286093c2fdf
treebed8f87adde74f054c6b822ffdbae74395e76710
parent6ebf5f33ed27b3632d2f58ffc2b69dbf32bd3258
md: write bitmap information to devices that are undergoing recovery.

When we add some spares to an array and start recovery, and we have
a bitmap which is stored 'internally' on all devices, we call
bitmap_write_all to make sure the bitmap is correct on the new
device(s).
However that doesn't work as write_sb_page only writes to
'In_sync' devices, and devices undergoing recovery are not
'In_sync' until recovery finishes.

So extend write_sb_page (actually next_active_rdev) to include devices
that are under recovery.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/bitmap.c