]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
lockdep: Decrease lockdep backtrace skip by 1
authorSam Lang <sam.lang@inktank.com>
Fri, 14 Dec 2012 03:22:37 +0000 (17:22 -1000)
committerSage Weil <sage@inktank.com>
Fri, 14 Dec 2012 22:17:40 +0000 (14:17 -0800)
Skipping the top 4 (it starts at 0) calls in the
backtrace actually skips the call that does the lock.
Skip 3 instead.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
src/common/lockdep.cc

index 873f28e90230712561baf56a15a3e4b8d71ac3af..7f67ae959feb756ba61962dcf6fbe4c1d36a28e0 100644 (file)
@@ -37,7 +37,7 @@ namespace __gnu_cxx {
 #define DOUT_COND(cct, l) cct && l <= XDOUT_CONDVAR(cct, dout_subsys)
 #define lockdep_dout(v) lsubdout(g_lockdep_ceph_ctx, lockdep, v)
 #define MAX_LOCKS  1000   // increase me as needed
-#define BACKTRACE_SKIP 3
+#define BACKTRACE_SKIP 2
 
 /******* Globals **********/
 int g_lockdep = get_env_int("CEPH_LOCKDEP");