mdt_llog_ctxt_unclone(env, m, LLOG_AGENT_ORIG_CTXT);
mdt_llog_ctxt_unclone(env, m, LLOG_CHANGELOG_ORIG_CTXT);
-
+ target_recovery_fini(obd);
if (m->mdt_namespace != NULL)
ldlm_namespace_free_prior(m->mdt_namespace, NULL,
d->ld_obd->obd_force);
+ mdt_quota_fini(env, m);
obd_exports_barrier(obd);
obd_zombie_barrier();
- mdt_quota_fini(env, m);
-
cfs_free_nidlist(&m->mdt_squash.rsi_nosquash_nids);
/* Calling the cleanup functions in the same order as in the mdt_init0
* error path
*/
mdt_tunables_fini(m);
-
- target_recovery_fini(obd);
upcall_cache_cleanup(m->mdt_identity_cache);
m->mdt_identity_cache = NULL;
ptlrpc_deactivate_import(imp);
+ ldlm_namespace_cleanup(obd->obd_namespace, LDLM_FL_LOCAL_ONLY);
+
/* Some non-replayable imports (MDS's OSCs) are pinged, so just
* delete it regardless. (It's safe to delete an import that was
* never added.) */