Whamcloud - gitweb
Branch b_release_1_8_1
authoryangsheng <yangsheng>
Thu, 18 Jun 2009 09:01:44 +0000 (09:01 +0000)
committeryangsheng <yangsheng>
Thu, 18 Jun 2009 09:01:44 +0000 (09:01 +0000)
b=19813

i=johann, yangsheng

Complete error handling.
Author: bobijam

lustre/mds/handler.c
lustre/mgs/mgs_handler.c
lustre/obdfilter/filter.c

index f750cec..9466226 100644 (file)
@@ -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);
         }
index a177dd3..2471b3e 100644 (file)
@@ -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);
         }
index 7110bdc..936adef 100644 (file)
@@ -2436,6 +2436,7 @@ cleanup:
                         fed->fed_lcd = NULL;
                 }
                 class_disconnect(exp);
+                lprocfs_exp_cleanup(exp);
         } else {
                 class_export_put(exp);
         }