Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Xen: Changelog

[xen-unstable] x86/mm: BUG() rather than panic() on mm lock order violations

 

 

Xen changelog RSS feed   Index | Next | Previous | View Threaded


patchbot at xen

Apr 20, 2012, 7:00 PM

Post #1 of 1 (63 views)
Permalink
[xen-unstable] x86/mm: BUG() rather than panic() on mm lock order violations

# HG changeset patch
# User Tim Deegan <tim [at] xen>
# Date 1334763793 -3600
# Node ID 4b1d80d52ced6a86032d37f74cec1af62d63a4c1
# Parent 7c777cb8f705411b77c551f34ba88bdc09e38ab8
x86/mm: BUG() rather than panic() on mm lock order violations

That gives us a backtrace showing where the bad lock happens.

Reported-by: Andres Lagar-Cavilla <andres [at] lagarcavilla
Signed-off-by: Tim Deegan <tim [at] xen>
Acked-by: Andres Lagar-Cavilla <andres [at] lagarcavilla>
Committed-by: Tim Deegan <tim [at] xen>
---


diff -r 7c777cb8f705 -r 4b1d80d52ced xen/arch/x86/mm/mm-locks.h
--- a/xen/arch/x86/mm/mm-locks.h Wed Apr 18 16:49:55 2012 +0100
+++ b/xen/arch/x86/mm/mm-locks.h Wed Apr 18 16:43:13 2012 +0100
@@ -50,8 +50,11 @@ static inline int mm_locked_by_me(mm_loc
#define __check_lock_level(l) \
do { \
if ( unlikely(__get_lock_level()) > (l) ) \
- panic("mm locking order violation: %i > %i\n", \
- __get_lock_level(), (l)); \
+ { \
+ printk("mm locking order violation: %i > %i\n", \
+ __get_lock_level(), (l)); \
+ BUG(); \
+ } \
} while(0)

#define __set_lock_level(l) \

_______________________________________________
Xen-changelog mailing list
Xen-changelog [at] lists
http://lists.xensource.com/xen-changelog

Xen changelog RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.