Whamcloud - gitweb
branch: b_release_1_8_1
authorericm <ericm>
Wed, 16 Sep 2009 19:08:04 +0000 (19:08 +0000)
committerericm <ericm>
Wed, 16 Sep 2009 19:08:04 +0000 (19:08 +0000)
mgs initialize export with exp_connecting set.
b=18849
r=rread
r=fanyong

lustre/mgs/mgs_handler.c

index 2471b3e..1421406 100644 (file)
@@ -667,6 +667,10 @@ int mgs_handle(struct ptlrpc_request *req)
 
 static inline int mgs_init_export(struct obd_export *exp)
 {
+        spin_lock(&exp->exp_lock);
+        exp->exp_connecting = 1;
+        spin_unlock(&exp->exp_lock);
+
         return ldlm_init_export(exp);
 }