From: Ben Greear <greearb@candelatech.com>
To: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Question on lockdep and sysrq - d
Date: Fri, 22 May 2009 17:31:01 -0700 [thread overview]
Message-ID: <4A1743C5.9020803@candelatech.com> (raw)
Hello!
I'm trying to debug an apparent deadlock in some code I'm
writing.
When I do a sysrq 'd', I get a nice dump of locks (I have lockdep enabled).
However, the output appears to show multiple processes holding the
same locks (rtnl_mutex, for example):
Showing all locks held in the system:
3 locks held by events/11/63:
#0: (events){--..}, at: [<ffffffff8104f71e>] run_workqueue+0xb1/0x216
#1: ((linkwatch_work).work){--..}, at: [<ffffffff8104f71e>] run_workqueue+0xb1/0x216
#2: (rtnl_mutex){--..}, at: [<ffffffff8125def1>] rtnl_lock+0x12/0x14
1 lock held by irqbalance/3360:
#0: (rtnl_mutex){--..}, at: [<ffffffff8125def1>] rtnl_lock+0x12/0x14
1 lock held by hald/3605:
#0: (rtnl_mutex){--..}, at: [<ffffffff8125def1>] rtnl_lock+0x12/0x14
...
Is this merely showing processes that are blocked on trying to acquire these locks?
If so, is there any way to tell which processes have fully acquired locks v/s
just waiting to acquire them?
Thanks,
Ben
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next reply other threads:[~2009-05-23 0:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-23 0:31 Ben Greear [this message]
2009-05-23 1:03 ` Ming Lei
2009-05-23 4:42 ` Ben Greear
2009-05-23 12:33 ` Ming Lei
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=4A1743C5.9020803@candelatech.com \
--to=greearb@candelatech.com \
--cc=linux-kernel@vger.kernel.org \
/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®