diff options
author | Hirokazu Takahashi <taka@valinux.co.jp> | 2013-04-23 21:42:44 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-04-30 00:49:26 -0400 |
commit | 0fea7ed82b1edf384735a2b535368f54a8584c3a (patch) | |
tree | 665a368ec22cf84d17b92b90c0966a8a12266b5d /drivers/md/raid1.c | |
parent | be83651f0050ca8621d58d35dad558e9c45cb18f (diff) |
md: raid1/raid10 md devices leak memory when stopping
Hi.
Raid1 and raid10 devices leak memory every time they stop.
This is a patch for linux-3.9.0-rc7 to fix this problem.
Thanks,
Hirokazu Takahashi.
Signed-off-by: Hirokazu Takahashi <taka@valinux.co.jp>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index fd86b372692d..c055b92d7eb5 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -2901,6 +2901,7 @@ static int stop(struct mddev *mddev) | |||
2901 | if (conf->r1bio_pool) | 2901 | if (conf->r1bio_pool) |
2902 | mempool_destroy(conf->r1bio_pool); | 2902 | mempool_destroy(conf->r1bio_pool); |
2903 | kfree(conf->mirrors); | 2903 | kfree(conf->mirrors); |
2904 | safe_put_page(conf->tmppage); | ||
2904 | kfree(conf->poolinfo); | 2905 | kfree(conf->poolinfo); |
2905 | kfree(conf); | 2906 | kfree(conf); |
2906 | mddev->private = NULL; | 2907 | mddev->private = NULL; |