]> git.baikalelectronics.ru Git - kernel.git/commit
md/raid10: prepare data structures for handling replacement.
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)
commit13e9048f0a4778f921167cd1f323ab75e891be82
treedcd87ffc4c97540d374a20de7380368e3679ac3b
parent1583c7d5a4f0811caebe4e9daac500f487ac34f6
md/raid10: prepare data structures for handling replacement.

Allow each slot in the RAID10 to have 2 devices, the want_replacement
and the replacement.

Also an r10bio to have 2 bios, and for resync/recovery allocate the
second bio if there are any replacement devices.

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