]> git.karo-electronics.de Git - karo-tx-linux.git/commit
md/raid10: prepare data structures for handling replacement.
authorNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:05 +0000 (14:27 +1100)
committerNeilBrown <neilb@suse.de>
Fri, 9 Dec 2011 03:27:05 +0000 (14:27 +1100)
commite256509f0f91d7132ddd157871648e36fbe544b4
treeadf5d5d4de962482443ecb14ceea7be723d6d53a
parent78214d3492ea37813c1d2d0871989f512ecaf92e
md/raid10: prepare data structures for handling replacement.

Allow each slot in the RAID10 to have 2 devices, the replaceable
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