]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita8ff9f727cdfcafa2f7f0e7e892ab6279472f3d1
treec6353ca45235a258cf7d72ecb1b29d6babfcd2fc
parent2b21bfd978e7d74f942e7caaf564d97dbec625a6
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