locking/mutex: Fix debug_mutexes
authorPeter Zijlstra <peterz@infradead.org>
Thu, 10 Apr 2014 14:15:59 +0000 (16:15 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 11 Apr 2014 08:40:35 +0000 (10:40 +0200)
commita227960fe0cafcc229a8d6bb8b454a3a0b33719d
treef654dd759ae4cfe4b5b65cd2386f92853eb61236
parent467cbd207abdbfe29514b5804a22661ab6e80dc6
locking/mutex: Fix debug_mutexes

debug_mutex_unlock() would bail when !debug_locks and forgets to
actually unlock.

Reported-by: "Michael L. Semon" <mlsemon35@gmail.com>
Reported-by: "Kirill A. Shutemov" <kirill@shutemov.name>
Reported-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu>
Fixes: 6f008e72cd11 ("locking/mutex: Fix debug checks")
Tested-by: Dave Jones <davej@redhat.com>
Cc: Jason Low <jason.low2@hp.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20140410141559.GE13658@twins.programming.kicks-ass.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/mutex-debug.c