> OTOH I tend to agree with people saying module use count==0 indicates the 
> module is unused and thus can be safely removed. Personally I'd expect the 
> hcd's use count to increase with every interface claimed by client driver.
> 
> Thoughts?

usb_hcd_pci_remove should run and cause a disconnect of your storage device.
 
> $ rmmod ohci_hcd
> 
> ohci-hcd 0000:00:01.2: remove, state 3
> usb usb1: USB disconnect, address 1
> usb 1-1: USB disconnect, address 2
> ohci-hcd 0000:00:01.2: USB bus 1 deregistered

And indeed it does run.
 
> $ ls /mnt/usbstick
> 
> ------------[ cut here ]------------
> kernel BUG at fs/buffer.c:1165!
> invalid operand: 0000 [#1]
> CPU:    0
> EIP:    0060:[<c015ca8a>]    Not tainted
> EFLAGS: 00010206
> EIP is at __getblk_slow+0x4a/0xf0
> eax: 00006b6a   ebx: 000001f7   ecx: 0000003e   edx: c88e2688
> esi: 00000200   edi: cbd2aa24   ebp: 000001f7   esp: c77c7c74
> ds: 007b   es: 007b   ss: 0068
> Process bash (pid: 1560, threadinfo=c77c6000 task=c8a2e080)
> Stack: 00000200 000001f7 cbd2aa24 00000000 c015cef6 cbd2aa24 000001f7 00000200 
>        c774d49c 00000000 00000000 c015cf51 cbd2aa24 000001f7 00000200 cd0dd54f 
>        cbd2aa24 000001f7 00000200 c77c7cc8 c7a03104 000001f7 c0364bc0 cbfb83e0 
> Call Trace:
>  [<c015cef6>] __getblk+0x26/0x30

Here probably the block or scsi layer is to blame.
What happens if you unplug the memory stick?

        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

Reply via email to