lkml.org 
[lkml]   [2017]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] lockdep: Print number of locks held by running tasks.
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;

\
 
 \ /
  Last update: 2017-12-18 13:21    [W:0.060 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site