diff options
author | Xiao Ni <xni@redhat.com> | 2022-05-12 17:21:09 +0800 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2022-05-22 23:07:22 -0700 |
commit | 42b805af102471f53e3c7867b8c2b502ea4eef7e (patch) | |
tree | 798408370b85cd43f8e7ebf117741931bf1b86fd /drivers/md | |
parent | 0f2571ad7a30ff6b33cde142439f9378669f8b4f (diff) |
md: fix double free of io_acct_set bioset
Now io_acct_set is alloc and free in personality. Remove the codes that
free io_acct_set in md_free and md_stop.
Fixes: 0c031fd37f69 (md: Move alloc/free acct bioset in to personality)
Signed-off-by: Xiao Ni <xni@redhat.com>
Signed-off-by: Song Liu <song@kernel.org>
Diffstat (limited to 'drivers/md')
-rw-r--r-- | drivers/md/md.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/md/md.c b/drivers/md/md.c index 2303fbd1dcad..8273ac5eef06 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -5585,8 +5585,6 @@ static void md_free(struct kobject *ko) bioset_exit(&mddev->bio_set); bioset_exit(&mddev->sync_set); - if (mddev->level != 1 && mddev->level != 10) - bioset_exit(&mddev->io_acct_set); kfree(mddev); } @@ -6271,8 +6269,6 @@ void md_stop(struct mddev *mddev) __md_stop(mddev); bioset_exit(&mddev->bio_set); bioset_exit(&mddev->sync_set); - if (mddev->level != 1 && mddev->level != 10) - bioset_exit(&mddev->io_acct_set); } EXPORT_SYMBOL_GPL(md_stop); |