md: Cleanup after raid45->raid0 takeover
authorKrzysztof Wojcik <krzysztof.wojcik@intel.com>
Wed, 20 Apr 2011 05:39:53 +0000 (15:39 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 20 Apr 2011 05:39:53 +0000 (15:39 +1000)
commitfee68723cf6ae00082f70f3eff17fceab2a4f7d7
tree2ff52c9cce0115bc745b60bd9c0faffed8dd46f0
parent3b71bd9337b404baab5c894e066be6b6bf51b1c3
md: Cleanup after raid45->raid0 takeover

Problem:
After raid4->raid0 takeover operation, another takeover operation
(e.g raid0->raid10) results "kernel oops".
Root cause:
Variables 'degraded' in mddev structure is not cleared
on raid45->raid0 takeover.

This patch reset this variable.

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