From 98757a3c392f5de9cce3746171ae1dc9a1f52045 Mon Sep 17 00:00:00 2001 From: wangdi Date: Thu, 29 Jun 2006 08:46:36 +0000 Subject: [PATCH] Branch: b_new_cmd disable nonblock lov sync, since ctxt can not be shared by 2 threads now. --- lustre/mdd/mdd_lov.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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); } -- 1.8.3.1