Whamcloud - gitweb
WARNING: we currently crash on unmount after the last phase of runtests.
[fs/lustre-release.git] / lustre / mds / handler.c
index f266985..76f5101 100644 (file)
@@ -276,13 +276,12 @@ static int mds_connect(struct lustre_handle *conn, struct obd_device *obd,
 
         spin_lock(&obd->obd_dev_lock);
         list_for_each(p, &obd->obd_exports) {
-                exp = list_entry(p, struct obd_export, exp_chain);
+                exp = list_entry(p, struct obd_export, exp_obd_chain);
                 mcd = exp->exp_mds_data.med_mcd;
                 if (!memcmp(cluuid, mcd->mcd_uuid, sizeof(mcd->mcd_uuid))) {
                         LASSERT(exp->exp_obd == obd);
 
-                        exp->exp_rconnh.addr = conn->addr;
-                        exp->exp_rconnh.cookie = conn->cookie;
+                        LASSERT(list_empty(&exp->exp_conn_chain));
                         conn->addr = (__u64) (unsigned long)exp;
                         conn->cookie = exp->exp_cookie;
                         spin_unlock(&obd->obd_dev_lock);
@@ -1119,6 +1118,9 @@ static int mds_setup(struct obd_device *obddev, obd_count len, void *buf)
         
         mds_destroy_export = mds_client_free;
 
+        ptlrpc_init_client(LDLM_REQUEST_PORTAL, LDLM_REPLY_PORTAL,
+                           "mds_ldlm_client", &obddev->obd_ldlm_client);
+
         RETURN(0);
 
 err_thread: