Bug 387
Summary: | poll on usb device does not return immediatly when device is unplugged | ||
---|---|---|---|
Product: | Drivers | Reporter: | Andreas Jellinghaus (aj) |
Component: | USB | Assignee: | Greg Kroah-Hartman (greg) |
Status: | CLOSED CODE_FIX | ||
Severity: | low | CC: | nacc |
Priority: | P2 | ||
Hardware: | i386 | ||
OS: | Linux | ||
Kernel Version: | 2.5.60 | Subsystem: | |
Regression: | --- | Bisected commit-id: | |
Attachments: |
test app. call with /proc/bus/usb/.... filename (maybe in an strace), remove device, poll does not return.
patch to signal waitqueues in usbfs that file is being removed. |
Description
Andreas Jellinghaus
2003-02-21 00:45:46 UTC
Do you have a small userspace program that I can use to test this? Also, does the same thing happen on 2.4? Created attachment 469 [details]
test app. call with /proc/bus/usb/.... filename (maybe in an strace), remove device, poll does not return.
same problem with 2.4.20 stock and 2.5.73
Does this problem still exist in 2.6.9/2.6.10-rc*? 2.6.10-rc1: still the same problem. shall I try rc2? I don't think there will be any change in rc2, to be honest. I will take a look at this problem today. Created attachment 4248 [details]
patch to signal waitqueues in usbfs that file is being removed.
Please try the attached patch, which should fix the bug. We were not properly
waking up the waitqueues that may have been watching the usbfs files.
the patch fixes the issue. thanks! |