LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-15-2013, 09:09 AM   #1
Tomi
LQ Newbie
 
Registered: Jan 2013
Location: Hungary
Posts: 7

Rep: Reputation: Disabled
eth1 cannot be unreg until it is free


Hello All,

I have a problem I cannot solve for a time.

I receive this when I unplug the device:
unregister_netdevice: waiting for eth1 to become free. Usage count = 1

My kernel is: 3.0
Used drivers: usbnet and GobiNet

I know this is a old bug, but I found nothing useful.

I checked the kernel source code and I do not know what there is a reference on the interface means. So, in short any good idea is nice which can help me to understand what is happening. And finally find solution.
Who can I guess out who is use the device yet?
And anyway what mean there is some reference to this device?

(comment out the reference number checking is not a solution, because it can cause other problem later)

It is interesting I get this not too frequently, but it simple makes my system is instable.

Tamas
 
Old 08-16-2013, 02:19 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
In kernel, there is a usage count each device. If a module use it, the count is increased.
Yes, the system isn't stable if the device is focused to release when the count isn't zero.
 
Old 08-17-2013, 03:41 AM   #3
Tomi
LQ Newbie
 
Registered: Jan 2013
Location: Hungary
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks. As I noticed it is a really general problem,
I mean lots of reason can be.

I noticed which module is responsible for this in my case.
I have a led device which is triggered by the net device.

In some special cases (I do not know why) there is a interrupt in a mux
and a dead lock comes.

I would like to ask something else:
how can cause such problem a interrupt?
I mean how can I guess out what happens the thread which locked one function and received a interrupt?
Why does not the control go back?
 
Old 08-19-2013, 02:19 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Too dependant on the code. In general, code review could help it.
 
  


Reply

Tags
bug, kernel, network



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is this legal: can still ping eth1 through eth0, even if eth1 cable is unplugged 5883 Linux - Networking 2 12-05-2012 03:55 AM
Unable to activate eth1 - device eth1 has different MAC address than expected. wkk1020@gmail.com Linux - Networking 18 10-29-2012 07:09 AM
howto acess intrnet thru eth1(wireless card)in winXP via briging in linux(eth0-eth1) labhesh_popli Linux - Wireless Networking 1 09-21-2006 01:11 AM
eth1 added, mysql connections FROM this machine are from eth1. Need bound to eth0??? kreese Linux - Networking 9 03-31-2004 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration