Skip to content
Commit a21d1504 authored by NeilBrown's avatar NeilBrown
Browse files

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: default avatarNeilBrown <neilb@suse.de>
parent 8b765398
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment