Re: [PATCH] powerpc pseries eeh: Convert to kthread API

From: Cornelia Huck
Date: Tue Apr 24 2007 - 03:44:26 EST

On Tue, 24 Apr 2007 15:00:42 +1000,
Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx> wrote:

> Like anything else, modules should have separated the entrypoints for
> - Initiating a removal request
> - Releasing the module
> The former is use did "rmmod", can unregister things from subsystems,
> etc... (and can file if the driver decides to refuse removal requests
> when it's busy doing things or whatever policy that module wants to
> implement).
> The later is called when all references to the modules have been
> dropped, it's a bit like the kref "release" (and could be implemented as
> one).

That sounds quite similar to the problems we have with kobject
refcounting vs. module unloading. The patchset I posted at exposes the
refcount of the kobject embedded in the module. Maybe the kthread code
could use that reference as well?
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at