Re: [patch] kobject_uevent: fix init ordering

From: Kay Sievers
Date: Thu Nov 04 2004 - 14:07:36 EST


On Thu, 2004-11-04 at 13:27 -0500, Robert Love wrote:
> Greg!
>
> Looks like kobject_uevent_init is executed before netlink_proto_init and
> consequently always fails. Not cool.
>
> Attached patch switches the initialization over from core_initcall (init
> level 1) to postcore_initcall (init level 2). Netlink's initialization
> is done in core_initcall, so this should fix the problem. We should be
> fine waiting until postcore_initcall.

Looks good. Don't know why this never failed on any kernel I used.
Does the failure happens on a SMP kernel?

> static int send_uevent(const char *signal, const char *obj, const void *buf,
> - int buflen, int gfp_mask)
> + int buflen, int gfp_mask)
^^^^^^^^^^
This has changed and will not apply.

Best,
Kay

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