]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commita21d15042d8cd736caf82c2bac564f3f93f3d017
treed430b6ae126e9bc8139d1c491b80a18cc86b27f1
parent8b76539823d71576927e3eb08b395eb6620f628d
md: centralise all freeing of an 'mddev' in 'md_free'

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>
drivers/md/md.c