Re: [PATCH] lockdep: Print number of locks held by running tasks.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>



[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]
  Powered by Linux