From 7f955e86a3acdc90a1ef013c43664ad9e9392de7 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 10 Sep 2005 16:06:46 +0000 Subject: [PATCH] b=7273 - additional debug check --- lustre/osc/osc_create.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lustre/osc/osc_create.c b/lustre/osc/osc_create.c index af7762e..39f33e3 100644 --- a/lustre/osc/osc_create.c +++ b/lustre/osc/osc_create.c @@ -82,6 +82,14 @@ int osc_create(struct obd_export *exp, struct obdo *oa, LASSERT(oa->o_valid & OBD_MD_FLGROUP); LASSERT(acl == NULL && acl_size == 0); +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,5,0)) + if (current->journal_info != NULL) { + CDEBUG(D_ERROR, "calling osc_create() with an " + "open transaction isn't a good idea\n"); + portals_debug_dumplog(); + } +#endif + if (oa->o_gr == FILTER_GROUP_LLOG || oa->o_gr == FILTER_GROUP_ECHO) RETURN(osc_real_create(exp, oa, ea, oti)); -- 1.8.3.1