On Mon, 08 May 2006 11:37:31 -0700 (PDT) "David S. Miller" <[EMAIL PROTECTED]> wrote:
> From: Stephen Hemminger <[EMAIL PROTECTED]> > Date: Mon, 8 May 2006 09:54:58 -0700 > > > The issue is are there network devices that can't sleep during > > register_netdevice? > > Oh right, I forgot about that. We could do something like this in register_netdevice() if (in_atomic() || irqs_disabled()) net_set_todo(dev); else { dev->reg_state = NETREG_REGISTERED; ret = netdev_register_sysfs(dev); if (ret) { ... } It seems a bit grotty, and might cause pain later. - 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