lockdep: Check if nested lock is actually held
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Thu, 13 Sep 2012 09:39:51 +0000 (11:39 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 13 Sep 2012 15:00:44 +0000 (17:00 +0200)
commitd094595078d00b63839d0c5ccb8b184ef242cb45
tree31929a5e414de13c0c4df46f3e1b3f276f0c58bf
parent0bd1189e239c76eb3a50e458548fbe7e4a5dfff1
lockdep: Check if nested lock is actually held

It is considered good form to lock the lock you claim to be nested in.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
[ removed nest_lock arg to print_lock_nested_lock_not_held in favour
  of hlock->nest_lock, also renamed the lock arg to hlock since its
  a held_lock type ]
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/5051A9E7.5040501@canonical.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/lockdep.c