From: alex Date: Wed, 11 May 2005 11:48:14 +0000 (+0000) Subject: - kernel_thread() returns pid on success. ptlrpc_connect_interpret() treated X-Git-Tag: 1.4.10~1174 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=cae2977773fcf963b562507877a771f9e792e4fa;p=fs%2Flustre-release.git - kernel_thread() returns pid on success. ptlrpc_connect_interpret() treated that as an error and broke the recovery state machine --- diff --git a/lustre/ptlrpc/import.c b/lustre/ptlrpc/import.c index 52f3587..af772e7 100644 --- a/lustre/ptlrpc/import.c +++ b/lustre/ptlrpc/import.c @@ -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);