]>
Commit | Line | Data |
---|---|---|
cdb2e4df GKH |
1 | From 7f437eec35a20f40d9ff82ae1c072b211c29e8e0 Mon Sep 17 00:00:00 2001 |
2 | From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
3 | Date: Thu, 25 Apr 2019 10:00:43 +0200 | |
4 | Subject: Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()" | |
5 | ||
6 | From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
7 | ||
8 | This reverts commit 4a195a0bc2e954b91085d5c82eb20c51835ee7b0 which was | |
9 | commit 71492580571467fb7177aade19c18ce7486267f5 upstream. | |
10 | ||
11 | Tetsuo rightly points out that the backport here is incorrect, as it | |
12 | touches the __lock_set_class function instead of the intended | |
13 | __lock_downgrade function. | |
14 | ||
15 | Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp> | |
16 | Cc: Waiman Long <longman@redhat.com> | |
17 | Cc: Peter Zijlstra (Intel) <peterz@infradead.org> | |
18 | Cc: Andrew Morton <akpm@linux-foundation.org> | |
19 | Cc: Linus Torvalds <torvalds@linux-foundation.org> | |
20 | Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com> | |
21 | Cc: Peter Zijlstra <peterz@infradead.org> | |
22 | Cc: Thomas Gleixner <tglx@linutronix.de> | |
23 | Cc: Will Deacon <will.deacon@arm.com> | |
24 | Cc: Ingo Molnar <mingo@kernel.org> | |
25 | Cc: Sasha Levin <sashal@kernel.org> | |
26 | Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
27 | --- | |
28 | kernel/locking/lockdep.c | 3 --- | |
29 | 1 file changed, 3 deletions(-) | |
30 | ||
31 | --- a/kernel/locking/lockdep.c | |
32 | +++ b/kernel/locking/lockdep.c | |
33 | @@ -3650,9 +3650,6 @@ __lock_set_class(struct lockdep_map *loc | |
34 | unsigned int depth; | |
35 | int i; | |
36 | ||
37 | - if (unlikely(!debug_locks)) | |
38 | - return 0; | |
39 | - | |
40 | depth = curr->lockdep_depth; | |
41 | /* | |
42 | * This function is about (re)setting the class of a held lock, |