diff options
author | Krzysztof Wojcik <krzysztof.wojcik@intel.com> | 2011-04-20 01:39:53 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-04-20 01:39:53 -0400 |
commit | fee68723cf6ae00082f70f3eff17fceab2a4f7d7 (patch) | |
tree | 2ff52c9cce0115bc745b60bd9c0faffed8dd46f0 /drivers/md | |
parent | 3b71bd9337b404baab5c894e066be6b6bf51b1c3 (diff) |
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>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 6e853c61d87e..7d6f7f18a920 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -3170,6 +3170,7 @@ level_store(mddev_t *mddev, const char *buf, size_t len) | |||
3170 | mddev->layout = mddev->new_layout; | 3170 | mddev->layout = mddev->new_layout; |
3171 | mddev->chunk_sectors = mddev->new_chunk_sectors; | 3171 | mddev->chunk_sectors = mddev->new_chunk_sectors; |
3172 | mddev->delta_disks = 0; | 3172 | mddev->delta_disks = 0; |
3173 | mddev->degraded = 0; | ||
3173 | if (mddev->pers->sync_request == NULL) { | 3174 | if (mddev->pers->sync_request == NULL) { |
3174 | /* this is now an array without redundancy, so | 3175 | /* this is now an array without redundancy, so |
3175 | * it must always be in_sync | 3176 | * it must always be in_sync |