Skip to content
Snippets Groups Projects
Commit 6112a93b authored by alex's avatar alex
Browse files

- better dump a backtrace, but not too often

parent 7f955e86
No related branches found
No related tags found
No related merge requests found
...@@ -84,9 +84,11 @@ int osc_create(struct obd_export *exp, struct obdo *oa, ...@@ -84,9 +84,11 @@ int osc_create(struct obd_export *exp, struct obdo *oa,
#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) #if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0))
if (current->journal_info != NULL) { if (current->journal_info != NULL) {
static int dump_counter = 0;
CDEBUG(D_ERROR, "calling osc_create() with an " CDEBUG(D_ERROR, "calling osc_create() with an "
"open transaction isn't a good idea\n"); "open transaction isn't a good idea\n");
portals_debug_dumplog(); if (dump_counter++ % 100 == 0)
portals_debug_dumpstack(NULL);
} }
#endif #endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment