Whamcloud - gitweb
Branch b1_4_mountconf
authornathan <nathan>
Fri, 3 Feb 2006 19:08:47 +0000 (19:08 +0000)
committernathan <nathan>
Fri, 3 Feb 2006 19:08:47 +0000 (19:08 +0000)
b=9851
reactivate MGS import if we're trying to reconnect to the import after
it has previously failed, and we want to try another "one shot" connection.

lustre/mgc/mgc_request.c

index ccc5228..a491614 100644 (file)
@@ -648,6 +648,12 @@ int mgc_set_info(struct obd_export *exp, obd_count keylen,
                 imp->imp_initial_recov_bk = *(int *)val;
                 CDEBUG(D_HA, "%s: set imp_initial_recov_bk = %d\n",
                        exp->exp_obd->obd_name, imp->imp_initial_recov_bk);
+                if (imp->imp_invalid) {
+                        /* Resurrect if we previously died */
+                        CDEBUG(D_MGC, "Reactivate %s\n", 
+                               imp->imp_obd->obd_name);
+                        ptlrpc_activate_import(imp);
+                }
                 RETURN(0);
         }
         /* Hack alert */