lkml.org 
[lkml]   [2007]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2007-07-14 06:03    [W:2.192 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site