* unregister_netdevice, usage count = 0
@ 2002-09-15 17:33 Ben Greear
0 siblings, 0 replies; only message in thread
From: Ben Greear @ 2002-09-15 17:33 UTC (permalink / raw)
To: 'netdev@oss.sgi.com'
For one reason or another, when trying to unload the e1000 NAPI'fied
drive from 2.4.20-pre7, I see this error repeatedly:
unregister_netdevice: waiting for eth2 to become free. Usage count = 0
So, I'm wondering if the code in dev.c, line 2688:
now = warning_time = jiffies;
while (atomic_read(&dev->refcnt) != 1) {
if ((jiffies - now) > 1*HZ) {
/* Rebroadcast unregister notification */
notifier_call_chain(&netdev_chain, NETDEV_UNREGISTER, dev);
}
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(HZ/4);
current->state = TASK_RUNNING;
if ((jiffies - warning_time) > 10*HZ) {
printk(KERN_EMERG "unregister_netdevice: waiting for %s to "
"become free. Usage count = %d\n",
dev->name, atomic_read(&dev->refcnt));
warning_time = jiffies;
}
}
dev_put(dev);
Should be like this instead:
while (atomic_read(&dev->refcnt) > 1) {
Now, off to see if I can track down the real problem...
Ben
--
Ben Greear <greearb@candelatech.com> <Ben_Greear AT excite.com>
President of Candela Technologies Inc http://www.candelatech.com
ScryMUD: http://scry.wanfear.com http://scry.wanfear.com/~greear
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-09-15 17:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-09-15 17:33 unregister_netdevice, usage count = 0 Ben Greear
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).