]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.14.114/revert-locking-lockdep-add-debug_locks-check-in-__lock_downgrade.patch
Linux 4.14.114
[thirdparty/kernel/stable-queue.git] / releases / 4.14.114 / revert-locking-lockdep-add-debug_locks-check-in-__lock_downgrade.patch
CommitLineData
cdb2e4df
GKH
1From 7f437eec35a20f40d9ff82ae1c072b211c29e8e0 Mon Sep 17 00:00:00 2001
2From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
3Date: Thu, 25 Apr 2019 10:00:43 +0200
4Subject: Revert "locking/lockdep: Add debug_locks check in __lock_downgrade()"
5
6From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7
8This reverts commit 4a195a0bc2e954b91085d5c82eb20c51835ee7b0 which was
9commit 71492580571467fb7177aade19c18ce7486267f5 upstream.
10
11Tetsuo rightly points out that the backport here is incorrect, as it
12touches the __lock_set_class function instead of the intended
13__lock_downgrade function.
14
15Reported-by: Tetsuo Handa <penguin-kernel@i-love.sakura.ne.jp>
16Cc: Waiman Long <longman@redhat.com>
17Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
18Cc: Andrew Morton <akpm@linux-foundation.org>
19Cc: Linus Torvalds <torvalds@linux-foundation.org>
20Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
21Cc: Peter Zijlstra <peterz@infradead.org>
22Cc: Thomas Gleixner <tglx@linutronix.de>
23Cc: Will Deacon <will.deacon@arm.com>
24Cc: Ingo Molnar <mingo@kernel.org>
25Cc: Sasha Levin <sashal@kernel.org>
26Signed-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,