md: centralise all freeing of an 'mddev' in 'md_free'
authorNeilBrown <neilb@suse.de>
Thu, 8 Jan 2009 21:31:09 +0000 (08:31 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 8 Jan 2009 21:31:09 +0000 (08:31 +1100)
md_free is the .release handler for the md kobj_type.
So it makes sense to release all the objects referenced by
the mddev in there, rather than just prior to calling kobject_put
for what we think is the last time.

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

No differences found