[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1204127094.11318.0.camel@vglwks010.vgl2.office.vaioni.com>
Date: Wed, 27 Feb 2008 15:44:54 +0000
From: Jeba Anandhan <jeba.anandhan@...oni.com>
To: netdev@...r.kernel.org
Cc: matthew.hattersley@...oni.com
Subject: unregister_netdev() deadlock
Hi all,
I have doubts about unregister the netdevice.
Scenario
I have two netdevice entities. I wish to unregister one entity.
struct net_device *dev1;
struct net_device *dev2;
dev1->timer = XXX;
dev2->timer = YYY;
dev1->ioctl() {
...
case delete_other:
unregister_netdev(dev2);
free_netdev(dev2);
return 0;
...
}
The dev2->refcnt is not zero in this case. unregister_netdev(dev2) cause
deadlock. Could you tell me why it happens?.
It works smoothly when we call the unregister_netdev(dev2) from
cleanup_module(). dev2->refcnt is not zero in this case. Still it is
able to unregister.
Thanks
Jeba
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists