Whamcloud - gitweb
- it's valid that MDC/LMV notifies MDS
[fs/lustre-release.git] / lustre / ldlm / ldlm_lib.c
index 9a9721e..fb70b65 100644 (file)
@@ -583,6 +583,8 @@ int target_handle_connect(struct ptlrpc_request *req)
         revimp->imp_dlm_fake = 1;
         revimp->imp_state = LUSTRE_IMP_FULL;
         class_import_put(revimp);
+
+        rc = obd_connect_post(export);
 out:
         if (rc)
                 req->rq_status = rc;
@@ -804,7 +806,7 @@ static void target_finish_recovery(struct obd_device *obd)
 
 static int check_for_next_transno(struct obd_device *obd)
 {
-        struct ptlrpc_request *req;
+        struct ptlrpc_request *req = NULL;
         int wake_up = 0, connected, completed, queue_len, max;
         __u64 next_transno, req_transno;