From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262853AbTDREgD (ORCPT ); Fri, 18 Apr 2003 00:36:03 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262856AbTDREgD (ORCPT ); Fri, 18 Apr 2003 00:36:03 -0400 Received: from granite.he.net ([216.218.226.66]:3852 "EHLO granite.he.net") by vger.kernel.org with ESMTP id S262853AbTDREgC (ORCPT ); Fri, 18 Apr 2003 00:36:02 -0400 Date: Thu, 17 Apr 2003 21:50:06 -0700 From: Greg KH To: davidm@hpl.hp.com, David Brownell Cc: linux-kernel@vger.kernel.org, linux-ia64@linuxia64.org, linux-usb-devel@lists.sourceforge.net Subject: Re: USB deadlock in v2.5.67 Message-ID: <20030418045006.GB1813@kroah.com> References: <200304180202.h3I227mw032608@napali.hpl.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200304180202.h3I227mw032608@napali.hpl.hp.com> User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 17, 2003 at 07:02:07PM -0700, David Mosberger wrote: > So my 2.5.67 kernel was humming along nicely when I got the idea to > unplug a USB keyboard. Instant deadlock. The backtrace shows this: Ah, I just got this too, but you have the better debug trace. > > Call Trace: > [] hcd_free_dev+0x140/0x240 > [] usb_release_dev+0x100/0x140 > [] device_release+0x80/0xa0 > [] kobject_cleanup+0x100/0x120 > [] urb_unlink+0x110/0x1a0 > [] usb_hcd_giveback_urb+0x30/0x1a0 > [] dl_done_list+0x230/0x2a0 > [] ohci_irq+0x290/0x340 > [] usb_hcd_irq+0x80/0x100 > [] handle_IRQ_event+0xa0/0x120 > [] do_IRQ+0x360/0x460 > [] ia64_handle_irq+0x70/0x140 > [] ia64_leave_kernel+0x0/0x240 > > translates into line 1249 in hcd.c, where it > does: > > spin_lock_irqsave (&hcd_data_lock, flags); > > The deadlock is pretty obvious: the same lock has already been > acquired urb_unlink(), 4 levels up in the call-chain. > > Anybody have a fix for this? David (Brownell, that is), does this help with the trace I sent you a few hours ago? thanks, greg k-h