Re: [PATCH RFD] alternative kobject release wait mechanism

From: Tejun Heo
Date: Wed Apr 18 2007 - 12:07:00 EST


Cornelia Huck wrote:
> On Wed, 18 Apr 2007 03:41:10 +0900,
> Tejun Heo <htejun@xxxxxxxxx> wrote:
>
> <patch>
>
> OK, I hit a bit on the code. Once I saved a reference to the completion
> in kobject_cleanup, it seemed to survive a load/unload testloop for a
> module registering a device. However, I still dislike this "list of
> waiters" approach, it looks too complex...

Heh heh, I'm amazed it actually works. Agreed that the list walking
isn't pretty but adding completion to each kobject still feels like too
much of overhead just for release waiting. Any better ideas?

Thanks.

--
tejun
-
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/