Re: Question on lockdep and MAX_LOCK_DEPTH

From: Steven Rostedt
Date: Wed Feb 06 2013 - 11:46:56 EST


On Wed, 2013-02-06 at 17:39 +0100, Ingo Molnar wrote:
> * Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:

> Wondering whether we could improve lockdep to detect 'excessive'
> lock nesting and treat it as a bug - the 'ran out of lockdep
> entries' assert might be too detached and it might even trigger
> in innocent, low lesting count contexts.

Probably adding a call to lockdep_printk_held_locks(current) when it
triggers, would be a good idea.

-- Steve


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/