Whamcloud - gitweb
- destroy lmv_obj cache in error case in lmv module init function.
authoryury <yury>
Sun, 14 Nov 2004 11:38:01 +0000 (11:38 +0000)
committeryury <yury>
Sun, 14 Nov 2004 11:38:01 +0000 (11:38 +0000)
lustre/llite/llite_lib.c
lustre/lmv/lmv_obd.c

index 80f368e..fd5686c 100644 (file)
@@ -1390,7 +1390,7 @@ void ll_put_inode(struct inode *inode)
 
                 rc = md_put_inode(sbi->ll_lmv_exp, &id);
                 if (rc) {
-                        CDEBUG("md_put_inode() failed, error %d\n", 
+                        CERROR("md_put_inode() failed, error %d\n", 
                                rc);
                 }
         }
index f5262a9..d41ad34 100644 (file)
@@ -1959,6 +1959,9 @@ int __init lmv_init(void)
         rc = class_register_type(&lmv_obd_ops, &lmv_md_ops,
                                  lvars.module_vars,
                                  OBD_LMV_DEVICENAME);
+        if (rc)
+                kmem_cache_destroy(obj_cache);
+        
         return rc;
 }