From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752845AbXCJRnd (ORCPT ); Sat, 10 Mar 2007 12:43:33 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752851AbXCJRnd (ORCPT ); Sat, 10 Mar 2007 12:43:33 -0500 Received: from smtp25.orange.fr ([193.252.22.23]:31294 "EHLO smtp25.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbXCJRnb (ORCPT ); Sat, 10 Mar 2007 12:43:31 -0500 X-ME-UUID: 20070310174327772.BC6A81C00087@mwinf2553.orange.fr Date: Sat, 10 Mar 2007 19:43:27 +0200 From: Samuel Ortiz To: Dave Jones , Linux Kernel Subject: Re: irda rmmod lockdep trace. Message-ID: <20070310174326.GA3816@sortiz.org> Reply-To: Samuel Ortiz References: <20070308225436.GA25184@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070308225436.GA25184@redhat.com> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi Dave, On Thu, Mar 08, 2007 at 05:54:36PM -0500, Dave Jones wrote: > modprobe irda ; rmmod irda in 2.6.21rc3 gets me the spew below.. Well it seems that we call __irias_delete_object() from hashbin_delete(). Then __irias_delete_object() calls itself hashbin_delete() again. We're trying to get the lock recursively. I'll try to fix that soon, thanks for the report. Cheers, Samuel. > Dave > > NET: Registered protocol family 23 > NET: Unregistered protocol family 23 > > ============================================= > [ INFO: possible recursive locking detected ] > 2.6.20-1.2966.fc7 #1 > --------------------------------------------- > rmmod/16712 is trying to acquire lock: > (&hashbin->hb_spinlock){....}, at: [] hashbin_delete+0x29/0x94 [irda] > > but task is already holding lock: > (&hashbin->hb_spinlock){....}, at: [] hashbin_delete+0x29/0x94 [irda] > > other info that might help us debug this: > 1 lock held by rmmod/16712: > #0: (&hashbin->hb_spinlock){....}, at: [] hashbin_delete+0x29/0x94 [irda] > > stack backtrace: > > Call Trace: > [] __lock_acquire+0x151/0xbc4 > [] :irda:__irias_delete_attrib+0x0/0x31 > [] lock_acquire+0x4c/0x65 > [] :irda:hashbin_delete+0x29/0x94 > [] _spin_lock_irqsave+0x2c/0x3c > [] :irda:hashbin_delete+0x29/0x94 > [] :irda:__irias_delete_object+0x0/0x39 > [] :irda:__irias_delete_object+0x25/0x39 > [] :irda:hashbin_delete+0x40/0x94 > [] :irda:iriap_cleanup+0x36/0x38 > [] :irda:irda_cleanup+0x29/0x3a > [] sys_delete_module+0x199/0x1ca > [] syscall_trace_enter+0x9a/0x9f > [] tracesys+0xdc/0xe1 > > > -- > http://www.codemonkey.org.uk