]> git.karo-electronics.de Git - mv-sheeva.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)
commit69335ef3bc5b766f34db2d688be1d35313138bca
treedcd87ffc4c97540d374a20de7380368e3679ac3b
parent3a6de2924af602f9c1b5a5154438c37f2d712dfa
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