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

lustre/mgs/mgs_handler.c

index 9d41f09..2a3f1d7 100644 (file)
@@ -666,6 +666,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);
 }