From da3b4a2b1e41b1f74d485e17cd45908200d9bce2 Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 26 Feb 2009 08:44:32 +0000 Subject: [PATCH] - free mgs and fsname strings from lmd - release counter for failed osd --- lustre/obdclass/obd_mount.c | 7 +++++++ 1 file changed, 7 insertions(+) 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); } -- 1.8.3.1