On Sun, Dec 12, 2004 at 11:57:18AM +0100, Andreas Jellinghaus wrote:
> osdl bug 367:
> poll on usb device does not return immediatly when device is unplugged
> 
> [EMAIL PROTECTED] fixes the problem with this patch:
> --- 2.6.10-rc3-v/drivers/usb/core/inode.c       2004-12-08 13:38:55.000000000 
> -0
> 800
> +++ 2.6.10-rc3/drivers/usb/core/inode.c 2004-12-08 11:57:52.000000000 -0800
> @@ -715,6 +715,7 @@ void usbfs_remove_device(struct usb_devi
>         }
>         while (!list_empty(&dev->filelist)) {
>                 ds = list_entry(dev->filelist.next, struct dev_state, list);
> +               wake_up_all(&ds->wait);
>                 list_del_init(&ds->list);
>                 if (ds->discsignr) {
>                         sinfo.si_signo = SIGPIPE;
> 
> 
> it would be nice to see this in the kernel soon.

It's already in there :)

thanks,

greg k-h


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to