From: Ming Lei <tom.leiming@gmail.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Clark Williams <williams@redhat.com>,
LKML <linux-kernel@vger.kernel.org>,
RT <linux-rt-users@vger.kernel.org>,
Thomas Gleixner <tglx@linutronix.de>,
Alan Stern <stern@rowland.harvard.edu>,
"greg@kroah.com" <greg@kroah.com>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Kay Sievers <kay.sievers@vrfy.org>
Subject: Re: [RT] Lockdep warning on boot with 2.6.31-rc5-rt1.1
Date: Sat, 8 Aug 2009 16:33:18 +0800 [thread overview]
Message-ID: <d82e647a0908080133g7aa3e62fqcc52054ba57a32f1@mail.gmail.com> (raw)
In-Reply-To: <1249657743.32113.733.camel@twins>
2009/8/7 Peter Zijlstra <peterz@infradead.org>:
> On Fri, 2009-08-07 at 09:46 -0500, Clark Williams wrote:
>> Peter,
>>
>> I'm getting this warning from lockdep when booting on my T60.
>>
>> The two addresses reported (0xffffffff812664a2 and 0xffffffff812664ae)
>> actually bracket one call to mutex_lock() in driver_attach() so I'm not
>> sure what the complaint is.
>>
>> Clark
>>
>> =============================================
>> [ INFO: possible recursive locking detected ]
>> 2.6.31-rc5-rt1.1 #37
>> ---------------------------------------------
>> swapper/1 is trying to acquire lock:
>> (&dev->mutex){+.+...}, at: [<ffffffff812664ae>]
>> __driver_attach+0x48/0x81
>>
>> but task is already holding lock:
>> (&dev->mutex){+.+...}, at: [<ffffffff812664a2>]
>> __driver_attach+0x3c/0x81
>>
>> other info that might help us debug this:
>> 1 lock held by swapper/1:
>> #0: (&dev->mutex){+.+...}, at: [<ffffffff812664a2>]
>> __driver_attach+0x3c/0x81
>
> Oh, that's tglx who's gone wild with sem->mutex conversions.
Maybe we can introduce some mutex interfaces which bypass lockdep validation
temporarily to allow driver core to convert to mutex from sema if lockdep
can't validate tree-structured lock orderings.
Thanks.
--
Lei Ming
next prev parent reply other threads:[~2009-08-08 8:33 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-07 14:46 Clark Williams
2009-08-07 15:09 ` Peter Zijlstra
2009-08-07 16:04 ` Alan Stern
2009-08-07 16:15 ` Peter Zijlstra
2009-08-07 16:45 ` Alan Stern
2009-08-07 16:49 ` Peter Zijlstra
2009-08-07 21:30 ` Alan Stern
2009-08-08 9:06 ` Ming Lei
2009-08-08 15:19 ` Alan Stern
2009-08-08 3:20 ` Dave Young
2009-08-08 8:33 ` Ming Lei [this message]
2009-08-08 12:00 ` Theodore Tso
2009-08-08 14:07 ` Dave Young
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d82e647a0908080133g7aa3e62fqcc52054ba57a32f1@mail.gmail.com \
--to=tom.leiming@gmail.com \
--cc=greg@kroah.com \
--cc=kay.sievers@vrfy.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rt-users@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=rjw@sisk.pl \
--cc=stern@rowland.harvard.edu \
--cc=tglx@linutronix.de \
--cc=williams@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®