From: wangdi Date: Thu, 29 Jun 2006 08:46:36 +0000 (+0000) Subject: Branch: b_new_cmd X-Git-Tag: v1_8_0_110~486^2~1519 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=98757a3c392f5de9cce3746171ae1dc9a1f52045;p=fs%2Flustre-release.git Branch: b_new_cmd disable nonblock lov sync, since ctxt can not be shared by 2 threads now. --- diff --git a/lustre/mdd/mdd_lov.c b/lustre/mdd/mdd_lov.c index 4b9fd22..38b15d6 100644 --- a/lustre/mdd/mdd_lov.c +++ b/lustre/mdd/mdd_lov.c @@ -499,7 +499,7 @@ int mdd_lov_start_synchronize(const struct lu_context *ctxt, disconnect the LOV. This of course means a cleanup won't finish for as long as the sync is blocking. */ lu_device_get(ld); - +#if 0 if (nonblock) { /* Synchronize in the background */ rc = cfs_kernel_thread(mdd_lov_synchronize, mlsi, @@ -515,7 +515,11 @@ int mdd_lov_start_synchronize(const struct lu_context *ctxt, } else { rc = __mdd_lov_synchronize((void *)mlsi); } - +#else + /*FIXME: Did not implement the nonblock lov sync here. because ctxt can not + * be shared, maybe we need ref_count for ctxt */ + rc = __mdd_lov_synchronize((void *)mlsi); +#endif RETURN(rc); }