Whamcloud - gitweb
- better dump a backtrace, but not too often
authoralex <alex>
Sat, 10 Sep 2005 23:44:32 +0000 (23:44 +0000)
committeralex <alex>
Sat, 10 Sep 2005 23:44:32 +0000 (23:44 +0000)
lustre/osc/osc_create.c

index 39f33e3..a112d1f 100644 (file)
@@ -84,9 +84,11 @@ int osc_create(struct obd_export *exp, struct obdo *oa,
 
 #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
         if (current->journal_info != NULL) {
+                static int dump_counter = 0;
                 CDEBUG(D_ERROR, "calling osc_create() with an "
                        "open transaction isn't a good idea\n");
-                portals_debug_dumplog();
+                if (dump_counter++ % 100 == 0)
+                        portals_debug_dumpstack(NULL);
         }
 #endif