Whamcloud - gitweb
- kernel_thread() returns pid on success. ptlrpc_connect_interpret() treated
authoralex <alex>
Wed, 11 May 2005 11:48:14 +0000 (11:48 +0000)
committeralex <alex>
Wed, 11 May 2005 11:48:14 +0000 (11:48 +0000)
  that as an error and broke the recovery state machine

lustre/ptlrpc/import.c

index 52f3587..af772e7 100644 (file)
@@ -643,7 +643,7 @@ int ptlrpc_import_recovery_state_machine(struct obd_import *imp)
                                    CLONE_VM | CLONE_FILES);
                 if (rc < 0)
                         CERROR("error starting invalidate thread: %d\n", rc);
-                RETURN(rc);
+                RETURN(rc < 0 ? rc : 0);
 #else
                 ptlrpc_invalidate_import(imp, 1);