Re: swallowed wakeup in hiddev

Jiri Kosina <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Wed, 31 Jan 2007, Oliver Neukum wrote:

> > coming from the URB submission which happened later - either the flags 
> > are cleared, or wake_up() will eventually happen (you are right that 
> > it might possibly be wake_up() corresponding to submission of URB 
> > submitted later, but does that matter?).
> Yes, as you cannot make sure it'll come before the timeout strikes, nor
> can you make sure the condition will be true when a second URB finishes.
> This logic can fail under load.

Actually, this is a current semantics of the usbhid_wait_io() function - 
it doesn't wait for a given URB to be delivered (which is what you seem to 
expect from it), but it rather waits until the given HID device completes 
pending I/O. Do you find this semantics broken in some way?

Thanks,

-- 
Jiri Kosina

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.