On Mon, 10 Jan 2005, Oliver Neukum wrote:

> Am Montag, 10. Januar 2005 13:04 schrieb Matthias Urlichs:
> > Hi,
> > 
> > "rmmod usbserial" doesn't like me.
> > (For debugging, this would be rather helpful...)
> > It hangs trying to deregister the module.
> > The system is otherwise useable.
> > No serial, USB or other devices are open, or have been opened before this.
> > (Kernel: 2.6.10)
> 
> I've seen this before. The problem seems to be in the generic driver model
> code, but I've never found it. Basically you need to trace where the semaphore
> in question is taken.

According to drivers/base/driver.c:driver_unregister(), the driver's 
unload_sem is initialized to a locked state and it isn't unlocked until 
the driver's module's refcount goes to 0.  Search for "unload_sem" in that 
source file and work from there...

Alan Stern



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to