All of lore.kernel.org
 help / color / mirror / Atom feed
* + lockdep-debug_locks-check-after-check_chain_key.patch added to -mm tree
@ 2007-02-13  7:23 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2007-02-13  7:23 UTC (permalink / raw)
  To: mm-commits; +Cc: jarkao2, mingo


The patch titled
     lockdep: debug_locks check after check_chain_key
has been added to the -mm tree.  Its filename is
     lockdep-debug_locks-check-after-check_chain_key.patch

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: lockdep: debug_locks check after check_chain_key
From: Jarek Poplawski <jarkao2@o2.pl>

In __lock_acquire check_chain_key can turn off debug_locks, so check is
needed to assure proper return code.

Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 kernel/lockdep.c |    4 ++++
 1 file changed, 4 insertions(+)

diff -puN kernel/lockdep.c~lockdep-debug_locks-check-after-check_chain_key kernel/lockdep.c
--- a/kernel/lockdep.c~lockdep-debug_locks-check-after-check_chain_key
+++ a/kernel/lockdep.c
@@ -2227,6 +2227,10 @@ out_calc_hash:
 
 	curr->lockdep_depth++;
 	check_chain_key(curr);
+#ifdef CONFIG_DEBUG_LOCKDEP
+	if (unlikely(!debug_locks))
+		return 0;
+#endif
 	if (unlikely(curr->lockdep_depth >= MAX_LOCK_DEPTH)) {
 		debug_locks_off();
 		printk("BUG: MAX_LOCK_DEPTH too low!\n");
_

Patches currently in -mm which might be from jarkao2@o2.pl are

origin.patch
br_if-oops-in-port_carrier_check.patch
lockdep-debug_locks-check-after-check_chain_key.patch

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-13  7:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-13  7:23 + lockdep-debug_locks-check-after-check_chain_key.patch added to -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.