Am Freitag, 18. Juli 2003 16:44 schrieb Alan Stern: > On Fri, 18 Jul 2003, Martin Diehl wrote: > > > Agreed, the oops doesn't come from usb. But again, once we have the block > > and scsi layer behaving with disappearing devices, there will still be fs > > corruption - do we want this to happen because the hcd *appears* unused? > > I agree. On the other hand, increasing the HCD's use count for _every_ > interface claimed may be going too far. There are plenty of drivers that > won't cause any problems at all if the controller driver is removed out > from under them. That includes usb-storage, provided the storage device > isn't mounted. > > Maybe a good compromise would be to increment the use count only for > interfaces claimed by usb-storage. That's not perfect; ideally we should > do it only when the drive is mounted. But usb-storage has no way to know > when that happens.
The kernel has no way at all to know which devices can disabled by unloading, nor should it make the attempt. Eg. HID may mean that your joystick now fails, but may as well kill your keyboard. If this is to be done at all, it means that no bus which hosts claimed interfaces must have an unloadable HCD. You really need to bump the usage counters on claim unconditionally. Regards Oliver ------------------------------------------------------- This SF.net email is sponsored by: VM Ware With VMware you can run multiple operating systems on a single machine. WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the same time. Free trial click here: http://www.vmware.com/wl/offer/345/0 _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel