From: alex Date: Sat, 10 Sep 2005 16:06:46 +0000 (+0000) Subject: b=7273 X-Git-Tag: 1.4.10~567 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=7f955e86a3acdc90a1ef013c43664ad9e9392de7;p=fs%2Flustre-release.git b=7273 - additional debug check --- 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));