Commit 599c8a40 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"

This reverts commit 4a195a0b which was
commit 71492580 upstream.

Tetsuo rightly points out that the backport here is incorrect, as it
touches the __lock_set_class function instead of the intended
__lock_downgrade function.
Reported-by: default avatarTetsuo Handa <>
Cc: Waiman Long <>
Cc: Peter Zijlstra (Intel) <>
Cc: Andrew Morton <>
Cc: Linus Torvalds <>
Cc: Paul E. McKenney <>
Cc: Peter Zijlstra <>
Cc: Thomas Gleixner <>
Cc: Will Deacon <>
Cc: Ingo Molnar <>
Cc: Sasha Levin <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent d6b11409
......@@ -3650,9 +3650,6 @@ __lock_set_class(struct lockdep_map *lock, const char *name,
unsigned int depth;
int i;
if (unlikely(!debug_locks))
return 0;
depth = curr->lockdep_depth;
* This function is about (re)setting the class of a held lock,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment