Stephen Hemminger <[EMAIL PROTECTED]> wrote:
>
> This follows after the earlier two patches.
>
> Change the initialization of the class device portion of the net device
> to be done earlier, so that any races before registration completes are
> harmless. Add a mutex to avoid changes to netdevice during the
> class device registration.
>
I had to fix up a reject in here.
> @@ -3047,7 +3051,10 @@
> * this is a delayed call after register_netdevice
> * so no way to tell device driver what is wrong.
> */
> + rtnl_lock();
> err = netdev_register_sysfs(dev);
> + __rtnl_unlock();
> +
> if (err) {
> printk(KERN_ERR "%s: failed sysfs registration
> (%d)\n",
> dev->name, err);
bix:/usr/src/25> grep 'this is a delayed call after' net/core/*.c
patches/*.patch
bix:/usr/src/25>
I cannot find that comment anywhere.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html