diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index 39f33e3d5510f5bd204c9e87fa7ddc6fb55877bd..a112d1f84b642b82a8f2ed37ae4ca718bb29087e 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -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