md: fix raid10 takeover: use new_layout for setup_conf
authorMaciej Trela <maciej.trela@intel.com>
Wed, 16 Jun 2010 10:46:29 +0000 (11:46 +0100)
committerNeilBrown <neilb@suse.de>
Thu, 24 Jun 2010 03:33:51 +0000 (13:33 +1000)
commitf73ea87375a1b2bf6c0be82bb9a3cb9d5ee7a407
treec6353ca45235a258cf7d72ecb1b29d6babfcd2fc
parente93f68a1fc6244c05ad8fae28e75835ec74ab34e
md: fix raid10 takeover: use new_layout for setup_conf

Use mddev->new_layout in setup_conf.
Also use new_chunk, and don't set ->degraded in takeover().  That
gets set in run()

Signed-off-by: Maciej Trela <maciej.trela@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid10.c