diff options
author | Guoqing Jiang <gqjiang@suse.com> | 2016-08-12 13:42:38 +0800 |
---|---|---|
committer | Shaohua Li <shli@fb.com> | 2016-09-21 09:09:44 -0700 |
commit | c20c33f0e2abdb8bab1ec755ed668d7894bf9336 (patch) | |
tree | 09f6aebaa446dc3100eccac40fb2c0b4808aa43e /drivers/md | |
parent | af8d8e6f031589ccf32b08eea91def53db8cfa95 (diff) | |
download | linux-c20c33f0e2abdb8bab1ec755ed668d7894bf9336.tar.bz2 |
md-cluster: clean related infos of cluster
cluster_info and bitmap_info.nodes also need to be
cleared when array is stopped.
Reviewed-by: NeilBrown <neilb@suse.com>
Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index b6ad04b58766..cd6797b3cdf7 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -5454,12 +5454,14 @@ static void md_clean(struct mddev *mddev) mddev->degraded = 0; mddev->safemode = 0; mddev->private = NULL; + mddev->cluster_info = NULL; mddev->bitmap_info.offset = 0; mddev->bitmap_info.default_offset = 0; mddev->bitmap_info.default_space = 0; mddev->bitmap_info.chunksize = 0; mddev->bitmap_info.daemon_sleep = 0; mddev->bitmap_info.max_write_behind = 0; + mddev->bitmap_info.nodes = 0; } static void __md_stop_writes(struct mddev *mddev) |