md: Fix raid1->raid0 takeover
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Sun, 13 Feb 2011 23:01:41 +0000 (10:01 +1100)
committerNeilBrown <neilb@suse.de>
Sun, 13 Feb 2011 23:01:41 +0000 (10:01 +1100)
commitf7bee80945155ad0326916486dabc38428c6cdef
treeadf054c298371d181aa2b3885425bcb766f3deb6
parent02214dc5461c36da26a34014cab4e1bb484edba2
md: Fix raid1->raid0 takeover

Takeover raid1->raid0 not succeded. Kernel message is shown:
"md/raid0:md126: too few disks (1 of 2) - aborting!"

Problem was that we weren't updating ->raid_disks for that
takeover, unlike all the others.

Signed-off-by: Krzysztof Wojcik <krzysztof.wojcik@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/raid0.c