From 7c294cd6f9636bab81798ec00d7f01308aca4bf0 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Thu, 18 Jun 2009 09:07:44 +0000 Subject: [PATCH] Branch b1_8 b=19813 i=johann, yangsheng Complete error handling. Author: bobijam --- lustre/mds/handler.c | 2 ++ lustre/mgs/mgs_handler.c | 1 + lustre/obdfilter/filter.c | 1 + 3 files changed, 4 insertions(+) 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 a451884..fe47cac 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 9f9fce2..a454fc5 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -2435,6 +2435,7 @@ cleanup: fed->fed_lcd = NULL; } class_disconnect(exp); + lprocfs_exp_cleanup(exp); } else { class_export_put(exp); } -- 1.8.3.1