Messages in this thread | | | Date | Fri, 13 Jul 2007 20:55:14 -0700 | From | Greg KH <> | Subject | Re: [PATCH 7/8] drivers edac fix edac_mc sysfs completion code |
| |
On Fri, Jul 13, 2007 at 10:54:30AM -0600, dougthompson@xmission.com wrote: > From: doug thompson <dougthompson@xmission.com> > > 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 Kroah-Hartman <gregkh@suse.de> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |