Whamcloud - gitweb
- ptlrpc_request_handle_notconn() shouldn't reconnect if recovery on
authoralex <alex>
Wed, 18 May 2005 20:41:05 +0000 (20:41 +0000)
committeralex <alex>
Wed, 18 May 2005 20:41:05 +0000 (20:41 +0000)
  import is disabled adminitratively

lustre/ptlrpc/recover.c

index 6faea9b..e51e346 100644 (file)
@@ -287,7 +287,9 @@ void ptlrpc_request_handle_notconn(struct ptlrpc_request *failed_req)
                         ptlrpc_deactivate_import(imp);
                 }
 
-                rc = ptlrpc_connect_import(imp, NULL);
+                /* to control recovery via lctl {disable|enable}_recovery */
+                if (imp->imp_deactive == 0)
+                        rc = ptlrpc_connect_import(imp, NULL);
         }
 
         /* Wait for recovery to complete and resend. If evicted, then