mds_fs_cleanup(obd);
upcall_cache_cleanup(mds->mds_group_hash);
mds->mds_group_hash = NULL;
+ remove_proc_entry("clear", obd->obd_proc_exports_entry);
err_ns:
+ lprocfs_free_per_client_stats(obd);
lprocfs_free_obd_stats(obd);
lprocfs_obd_cleanup(obd);
ldlm_namespace_free(obd->obd_namespace, NULL, 0);
unlock_res_and_lock(new_lock);
lustre_hash_add(new_lock->l_export->exp_lock_hash,
- &new_lock->l_remote_handle,
+ &new_lock->l_remote_handle,
&new_lock->l_exp_hash);
LDLM_LOCK_PUT(new_lock);
!exp->exp_obd->obd_nid_stats_hash)
RETURN(-EINVAL);
- /* not test against zero because eric say:
- * You may only test nid against another nid, or LNET_NID_ANY.
+ /* not test against zero because eric say:
+ * You may only test nid against another nid, or LNET_NID_ANY.
* Anything else is nonsense.*/
if (!nid || *nid == LNET_NID_ANY)
RETURN(0);
lprocfs_exp_rd_hash, NULL, new_stat);
if (rc) {
CWARN("Error adding the hash file\n");
- lprocfs_remove(&new_stat->nid_proc);
GOTO(destroy_new_ns, rc);
}
RETURN(rc);
destroy_new_ns:
+ if (new_stat->nid_proc != NULL)
+ lprocfs_remove(&new_stat->nid_proc);
lustre_hash_del(obd->obd_nid_stats_hash, nid, &new_stat->nid_hash);
OBD_FREE_PTR(new_ns_uuid);