Whamcloud - gitweb
LU-7185 ldlm: Restore connect flags on failure
[fs/lustre-release.git] / lustre / ldlm / ldlm_lib.c
index 3aea6a2..928913c 100644 (file)
@@ -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);
         }