From: Jeremy Filizetti Date: Mon, 26 Oct 2015 23:47:38 +0000 (-0400) Subject: LU-7185 ldlm: Restore connect flags on failure X-Git-Tag: 2.8.54~19 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=9832fed2569ced118800f33222b02d1ac65312cb LU-7185 ldlm: Restore connect flags on failure Restore connect flags on failure of ptlrpc_connect_import() to prevent an LBUG due to flags mismatch. Signed-off-by: Jeremy Filizetti Change-Id: I9149c8d2f512c1f920b3bdfa8f3435b03dc72ab2 Reviewed-on: http://review.whamcloud.com/16950 Reviewed-by: Andreas Dilger Tested-by: Jenkins Reviewed-by: Sebastien Buisson Reviewed-by: John L. Hammond Tested-by: Maloo --- diff --git a/lustre/ldlm/ldlm_lib.c b/lustre/ldlm/ldlm_lib.c index 3aea6a2..928913c 100644 --- a/lustre/ldlm/ldlm_lib.c +++ b/lustre/ldlm/ldlm_lib.c @@ -568,6 +568,8 @@ int client_connect_import(const struct lu_env *env, rc = ptlrpc_connect_import(imp); if (rc != 0) { + if (data && is_mdc) + data->ocd_connect_flags &= ~OBD_CONNECT_MULTIMODRPCS; LASSERT (imp->imp_state == LUSTRE_IMP_DISCON); GOTO(out_ldlm, rc); }