Whamcloud - gitweb
Don't try to auto-load obd module when we are just in the process of
authoradilger <adilger>
Fri, 12 Jul 2002 20:44:28 +0000 (20:44 +0000)
committeradilger <adilger>
Fri, 12 Jul 2002 20:44:28 +0000 (20:44 +0000)
registering it.

lustre/obdclass/genops.c

index 509b2ef..b6403f3 100644 (file)
@@ -68,7 +68,7 @@ int class_register_type(struct obd_ops *ops, char *nm)
 
         ENTRY;
 
-        if (class_nm_to_type(nm)) {
+        if (class_search_type(nm)) {
                 CDEBUG(D_IOCTL, "Type %s already registered\n", nm);
                 RETURN(-EEXIST);
         }