login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
May
»
21
Re: [PATCH] USB: fix deadlock in HCD code
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Oliver Neukum
Subject:
Re: [PATCH] USB: fix deadlock in HCD code
Date: Wednesday, May 21, 2008 - 6:40 am
Am Mittwoch 21 Mai 2008 15:27:50 schrieb Jiri Kosina:
quoted text
> 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(). >
Sorry, yes other code paths take it with enabled interrupts. The patch is good and necessary for 2.6.26. Regards Oliver --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] USB: fix deadlock in HCD code
, Jiri Kosina
, (Wed May 21, 5:09 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Oliver Neukum
, (Wed May 21, 6:21 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Jiri Kosina
, (Wed May 21, 6:27 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Oliver Neukum
, (Wed May 21, 6:32 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Jiri Kosina
, (Wed May 21, 6:36 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Oliver Neukum
, (Wed May 21, 6:40 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Oliver Neukum
, (Wed May 21, 6:47 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Alan Stern
, (Wed May 21, 7:13 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Jiri Kosina
, (Wed May 21, 7:22 am)
Re: [PATCH] USB: fix deadlock in HCD code
, David Vrabel
, (Wed May 21, 7:29 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Oliver Neukum
, (Wed May 21, 7:31 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Alan Stern
, (Wed May 21, 7:42 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Alan Stern
, (Wed May 21, 7:46 am)
Re: [PATCH] USB: fix deadlock in HCD code
, David Vrabel
, (Wed May 21, 7:53 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Alan Stern
, (Wed May 21, 7:58 am)
Re: [PATCH] USB: fix deadlock in HCD code
, Leonardo Chiquitt