[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lustre-cvs
Subject:    [Lustre-cvs] CVS: lustre/obdclass genops.c,1.89,1.90
From:       Phil Schwan <pschwan () users ! sourceforge ! net>
Date:       2002-10-30 22:00:03
[Download RAW message or body]

Update of /cvsroot/lustre/lustre/obdclass
In directory usw-pr-cvs1:/tmp/cvs-serv7136/obdclass

Modified Files:
	genops.c 
Log Message:
b=300
MDT wasn't calling 'unregister_type'; fixed


Index: genops.c
===================================================================
RCS file: /cvsroot/lustre/lustre/obdclass/genops.c,v
retrieving revision 1.89
retrieving revision 1.90
diff -u -w -b -B -p -r1.89 -r1.90
--- genops.c	30 Oct 2002 03:31:47 -0000	1.89
+++ genops.c	30 Oct 2002 21:59:59 -0000	1.90
@@ -165,6 +165,8 @@ int class_register_type(struct obd_ops *
         if (!type)
                 RETURN(-ENOMEM);
         INIT_LIST_HEAD(&type->typ_chain);
+        CDEBUG(D_INFO, "MOD_INC_USE for register_type: count = %d\n",
+               atomic_read(&(THIS_MODULE)->uc.usecount));
         MOD_INC_USE_COUNT;
         list_add(&type->typ_chain, &obd_types);
         memcpy(type->typ_ops, ops, sizeof(*type->typ_ops));
@@ -196,6 +198,8 @@ int class_unregister_type(char *nm)
         if (type->typ_ops != NULL)
                 OBD_FREE(type->typ_ops, sizeof(*type->typ_ops));
         OBD_FREE(type, sizeof(*type));
+        CDEBUG(D_INFO, "MOD_DEC_USE for register_type: count = %d\n",
+               atomic_read(&(THIS_MODULE)->uc.usecount) - 1);
         MOD_DEC_USE_COUNT;
         RETURN(0);
 } /* class_unregister_type */



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
_______________________________________________
Lustre-cvs mailing list
Lustre-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lustre-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic