From: yangsheng Date: Thu, 18 Jun 2009 09:01:44 +0000 (+0000) Subject: Branch b_release_1_8_1 X-Git-Tag: v1_8_0_170~10 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=31191fb31c56df1f1f5828e1cc4cea67437bca9a;p=fs%2Flustre-release.git Branch b_release_1_8_1 b=19813 i=johann, yangsheng Complete error handling. Author: bobijam --- diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index f750cec..94662267 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -384,6 +384,8 @@ out: med->med_lcd = NULL; } class_disconnect(exp); + /* release nid stat refererence */ + lprocfs_exp_cleanup(exp); } else { class_export_put(exp); } diff --git a/lustre/mgs/mgs_handler.c b/lustre/mgs/mgs_handler.c index a177dd3..2471b3e 100644 --- a/lustre/mgs/mgs_handler.c +++ b/lustre/mgs/mgs_handler.c @@ -91,6 +91,7 @@ static int mgs_connect(struct lustre_handle *conn, struct obd_device *obd, if (rc) { class_disconnect(exp); + lprocfs_exp_cleanup(exp); } else { class_export_put(exp); } diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index 7110bdc..936adef 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2436,6 +2436,7 @@ cleanup: fed->fed_lcd = NULL; } class_disconnect(exp); + lprocfs_exp_cleanup(exp); } else { class_export_put(exp); }