Whamcloud - gitweb
- lprocfs_dereg_dev is failing, which prevented cleanup. This is VERY BAD, so
authorpschwan <pschwan>
Sat, 7 Sep 2002 20:47:17 +0000 (20:47 +0000)
committerpschwan <pschwan>
Sat, 7 Sep 2002 20:47:17 +0000 (20:47 +0000)
  I made it continue with cleanup instead of aborting

lustre/obdclass/class_obd.c
lustre/obdclass/genops.c

index c68e44d..5de6380 100644 (file)
@@ -666,10 +666,8 @@ static int obd_class_ioctl (struct inode * inode, struct file * filp,
                         GOTO(out, err=-EBUSY);
                 }
 
-                if(lprocfs_dereg_dev(obd)!=LPROCFS_SUCCESS){
-                        CERROR("Could not remove Proc Entry\n");
-                        GOTO(out, err=-ENODEV);
-                        
+                if (lprocfs_dereg_dev(obd) != LPROCFS_SUCCESS) {
+                        CERROR("Could not remove /proc entry\n");
                 }
                 if (obd->obd_name) {
                         OBD_FREE(obd->obd_name, strlen(obd->obd_name)+1);
index a2741f2..a6dc7b8 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/slab.h>
 
 extern struct list_head obd_types;
-extern struct obd_device obd_dev[MAX_OBD_DEVICES];
 kmem_cache_t *obdo_cachep = NULL;
 kmem_cache_t *export_cachep = NULL;
 kmem_cache_t *import_cachep = NULL;