Whamcloud - gitweb
Branch: b_new_cmd
authorwangdi <wangdi>
Thu, 29 Jun 2006 08:46:36 +0000 (08:46 +0000)
committerwangdi <wangdi>
Thu, 29 Jun 2006 08:46:36 +0000 (08:46 +0000)
disable nonblock lov sync, since ctxt can not be shared by 2 threads now.

lustre/mdd/mdd_lov.c

index 4b9fd22..38b15d6 100644 (file)
@@ -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);
 }