summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorDoug Thompson <dougthompson@xmission.com>2007-07-19 10:50:27 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-19 19:04:57 +0200
commit8096cfafbb7ad3cb1a286ae7e8086167f4ebb4b6 (patch)
tree27b859beffef019095db810244f93e10473ea06f /drivers/md
parentdrivers/edac: fix edac_device init apis (diff)
downloadlinux-8096cfafbb7ad3cb1a286ae7e8086167f4ebb4b6.tar.xz
linux-8096cfafbb7ad3cb1a286ae7e8086167f4ebb4b6.zip
drivers/edac: fix edac_mc sysfs completion code
This patch refactors the 'releasing' of kobjects for the edac_mc type of device. The correct pattern of kobject release is followed. As internal kobjs are allocated they bump a ref count on the top level kobj. It in turn has a module ref count on the edac_core module. When internal kobjects are released, they dec the ref count on the top level kobj. When the top level kobj reaches zero, it decrements the ref count on the edac_core object, allow it to be unloaded, as all resources have all now been released. Cc: Alan Cox alan@lxorguk.ukuu.org.uk Signed-off-by: Doug Thompson <dougthompson@xmission.com> Acked-by: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions