From: alex Date: Thu, 26 Feb 2009 08:44:32 +0000 (+0000) Subject: - free mgs and fsname strings from lmd X-Git-Tag: GIT_EPOCH_B_HD_KDMU~2^4~157 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=da3b4a2b1e41b1f74d485e17cd45908200d9bce2;p=fs%2Flustre-release.git - free mgs and fsname strings from lmd - release counter for failed osd --- diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index 2516be56..c188064 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -1308,6 +1308,12 @@ static int lustre_free_lsi(struct super_block *sb) OBD_FREE(lsi->lsi_lmd->lmd_exclude, sizeof(lsi->lsi_lmd->lmd_exclude[0]) * lsi->lsi_lmd->lmd_exclude_count); + if (lsi->lsi_lmd->lmd_mgs) + OBD_FREE(lsi->lsi_lmd->lmd_mgs, + strlen(lsi->lsi_lmd->lmd_mgs) + 1); + if (lsi->lsi_lmd->lmd_fsname) + OBD_FREE(lsi->lsi_lmd->lmd_fsname, + strlen(lsi->lsi_lmd->lmd_fsname) + 1); OBD_FREE(lsi->lsi_lmd, sizeof(*lsi->lsi_lmd)); } @@ -1481,6 +1487,7 @@ out: if (rc) { if (d) { LASSERT(ldt); + type->typ_refcnt--; ldt->ldt_ops->ldto_device_fini(&env, d); ldt->ldt_ops->ldto_device_free(&env, d); }