From 6b252cf4a6a9ae0f4fbde2b042211a839c81664c Mon Sep 17 00:00:00 2001 From: nathan Date: Fri, 3 Feb 2006 19:08:47 +0000 Subject: [PATCH] Branch b1_4_mountconf 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lustre/mgc/mgc_request.c b/lustre/mgc/mgc_request.c index ccc5228..a491614 100644 --- a/lustre/mgc/mgc_request.c +++ b/lustre/mgc/mgc_request.c @@ -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 */ -- 1.8.3.1