]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
free_super after assembling a container
authorNeilBrown <neilb@suse.de>
Tue, 1 Feb 2011 02:07:24 +0000 (13:07 +1100)
committerNeilBrown <neilb@suse.de>
Tue, 1 Feb 2011 02:07:24 +0000 (13:07 +1100)
Else the devices are held open.

Signed-off-by: NeilBrown <neilb@suse.de>
Assemble.c

index ea54fc099d8f9cc060efb9dd1bdb3a298f97deba..a9c7875af3d61527933dda821273bf1d1cc31fd1 100644 (file)
@@ -1304,6 +1304,7 @@ int Assemble(struct supertype *st, char *mddev,
                                                content->array.raid_disks);
                                fprintf(stderr, "\n");
                        }
+                       st->ss->free_super(st);
                        sysfs_uevent(content, "change");
                        wait_for(chosen_name, mdfd);
                        close(mdfd);