RE: Endpoint flushing is not safe against URB removal

2013-01-29 Thread Alan Stern
On Tue, 29 Jan 2013, Anton Tikhomirov wrote: > Hello, > > Sorry for my haste, I missed that. We have situation when CPU > stalls in usb_hcd_flush_endpoint(), so at first glance it looked > strange for me. Will analyze more. If you provide more information, maybe I can help guide your analysis.

RE: Endpoint flushing is not safe against URB removal

2013-01-28 Thread Anton Tikhomirov
Hello, Sorry for my haste, I missed that. We have situation when CPU stalls in usb_hcd_flush_endpoint(), so at first glance it looked strange for me. Will analyze more. Thank you. > On Mon, 28 Jan 2013, Anton Tikhomirov wrote: > > > Hello, > > > > In drivers/usb/core/hcd.c: usb_hcd_flush_endpoi

Re: Endpoint flushing is not safe against URB removal

2013-01-28 Thread Alan Stern
On Mon, 28 Jan 2013, Anton Tikhomirov wrote: > Hello, > > In drivers/usb/core/hcd.c: usb_hcd_flush_endpoint() uses > list_for_each_entry() to unlink URBs pending on > endpoint. At the same time unlink1() calls usb_rh_urb_dequeue() > where URB is removed from its endpoint queue: > > void usb_hcd_