Whamcloud - gitweb
some small fix and debug helper.
authorhuanghua <huanghua>
Mon, 4 Sep 2006 14:41:58 +0000 (14:41 +0000)
committerhuanghua <huanghua>
Mon, 4 Sep 2006 14:41:58 +0000 (14:41 +0000)
lustre/ldlm/ldlm_lock.c
lustre/mdt/mdt_handler.c
lustre/obdclass/obd_mount.c

index e4e5ef3..3c21a00 100644 (file)
@@ -1114,6 +1114,9 @@ void ldlm_reprocess_all_ns(struct ldlm_namespace *ns)
 {
         struct list_head *tmp;
         int i, rc;
+        
+        if (ns == NULL)
+                return;
 
         ENTRY;
         spin_lock(&ns->ns_hash_lock);
index d838d56..a768afa 100644 (file)
@@ -2297,6 +2297,7 @@ static struct lu_device *mdt_layer_setup(const struct lu_context *ctx,
         struct lu_device_type *ldt;
         struct lu_device      *d;
         int rc;
+        ENTRY;
 
         /* find the type */
         type = class_get_type(typename);
index 7d41ed3..20dd8c6 100644 (file)
@@ -1368,6 +1368,7 @@ static void server_put_super(struct super_block *sb)
 
         LCONSOLE_WARN("server umount %s complete\n", tmpname);
         OBD_FREE(tmpname, tmpname_sz);
+        class_obd_list();
         EXIT;
 }