From: Matthew Wilcox <willy@infradead.org>
To: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org,
syzkaller@googlegroups.com, Ingo Molnar <mingo@redhat.com>,
Peter Zijlstra <peterz@infradead.org>
Subject: Re: [PATCH] lockdep: Print number of locks held by running tasks.
Date: Mon, 18 Dec 2017 04:19:25 -0800 [thread overview]
Message-ID: <20171218121925.GA22866@bombadil.infradead.org> (raw)
In-Reply-To: <1513598995-4385-1-git-send-email-penguin-kernel@I-love.SAKURA.ne.jp>
On Mon, Dec 18, 2017 at 09:09:55PM +0900, Tetsuo Handa wrote:
> */
> - if (p->state == TASK_RUNNING && p != current)
> + if (p->state == TASK_RUNNING && p != current) {
> + const int depth = p->lockdep_depth;
READ_ONCE()?
> + if (depth)
> + printk("%d lock%s held by %s/%d:\n",
> + depth, depth > 1 ? "s" : "", p->comm,
> + task_pid_nr(p));
> continue;
prev parent reply other threads:[~2017-12-18 12:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-18 12:09 Tetsuo Handa
2017-12-18 12:19 ` Matthew Wilcox [this message]
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=20171218121925.GA22866@bombadil.infradead.org \
--to=willy@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=mingo@redhat.com \
--cc=penguin-kernel@I-love.SAKURA.ne.jp \
--cc=peterz@infradead.org \
--cc=syzkaller@googlegroups.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®