lkml.org 
[lkml]   [2008]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] USB: fix deadlock in HCD code
On Wed, 21 May 2008, Oliver Neukum wrote:

> > hcd_urb_list_lock is used for synchronization between IRQ and non-IRQ
> > contexts, so the non-IRQ context has to disable IRQs in order to prevent
> > deadlocking with IRQ context.
> Which non-irq context is that?

One example -- assume usb_submit_urb() called from non-IRQ context. Then

usb_hcd_submit_urb() -> rh_urb_enqueue() -> rh_queue_status() ->
usb_hcd_link_urb_to_ep().

--
Jiri Kosina
SUSE Labs


\
 
 \ /
  Last update: 2008-05-21 15:31    [W:0.073 / U:0.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site