Re: [PATCH 7/8] drivers edac fix edac_mc sysfs completion code

From: Greg KH
Date: Fri Jul 13 2007 - 23:58:56 EST


On Fri, Jul 13, 2007 at 10:54:30AM -0600, dougthompson@xxxxxxxxxxxx wrote:
> From: doug thompson <dougthompson@xxxxxxxxxxxx>
>
> 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@xxxxxxxxxxxxxxxxxxx
> Signed-off-by: doug thompson <dougthompson@xxxxxxxxxxxx>

Acked-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/