Re: catch 22 - porting net driver from 2.2 to 2.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Hen, Shmulik" wrote:
> 
> I don't get it.
> 
> If do_ioctl runs inside rtnl_lock, why do I have to run register_netdevice
> with rtnl_lock held ?

Whoops, no you are right there.


> if I run register_netdevice from do_ioctl, I get the "assertion failed..."
> and if I run register_netdev instead I get a "trying to schedule in
> interrupt..." panic.

Yeah, register_netdev tries to get rtnl_lock, so that is bad.

If you are using register_netdevice in do_ioctl, without grabbing
rtnl_lock, then something else is going on...

-- 
Jeff Garzik             |
Building 1024           | Would you like a Twinkie?
MandrakeSoft            |
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux