Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Thu, 18 Jun 2009 09:07:44 +0000 (09:07 +0000)
committeryangsheng <yangsheng>
Thu, 18 Jun 2009 09:07:44 +0000 (09:07 +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 a451884..fe47cac 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 9f9fce2..a454fc5 100644 (file)
@@ -2435,6 +2435,7 @@ cleanup:
                         fed->fed_lcd = NULL;
                 }
                 class_disconnect(exp);
+                lprocfs_exp_cleanup(exp);
         } else {
                 class_export_put(exp);
         }