From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935496AbYEUNkk (ORCPT ); Wed, 21 May 2008 09:40:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764589AbYEUNka (ORCPT ); Wed, 21 May 2008 09:40:30 -0400 Received: from smtp-out002.kontent.com ([81.88.40.216]:43976 "EHLO smtp-out002.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763141AbYEUNk3 (ORCPT ); Wed, 21 May 2008 09:40:29 -0400 From: Oliver Neukum Organization: NOvell To: Jiri Kosina Subject: Re: [PATCH] USB: fix deadlock in HCD code Date: Wed, 21 May 2008 15:40:24 +0200 User-Agent: KMail/1.9.9 Cc: Greg KH , linux-usb@vger.kernel.org, Alan Stern , lchiquitto@novell.com, linux-kernel@vger.kernel.org References: <200805211521.01435.oliver@neukum.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200805211540.25135.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Mittwoch 21 Mai 2008 15:27:50 schrieb Jiri Kosina: > 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