This patch applies over f0.2 published today.
Currently, ckrm_alloc_class() does kref_get() on the class in addition
to kref_init(), which is not needed, which leads to the class not being
freed when the directory is removed. This patch fixes that.


 kernel/ckrm/ckrm.c |    4 +---
 1 files changed, 1 insertion(+), 3 deletions(-)

Index: linux-2.6.13f.uml/kernel/ckrm/ckrm.c
===================================================================
--- linux-2.6.13f.uml.orig/kernel/ckrm/ckrm.c
+++ linux-2.6.13f.uml/kernel/ckrm/ckrm.c
@@ -205,10 +205,8 @@ ckrm_alloc_class(struct ckrm_class *pare
        for (i = 0; i < ckrm_max_resid; i++)
                ckrm_alloc_res_class(cls, parent, i);
 
-       if (parent)
-               kref_get(&parent->refcnt);
+       kref_get(&parent->refcnt);
 
-       kref_get(&cls->refcnt);
        return cls;
 }
 

-- 

----------------------------------------------------------------------
    Chandra Seetharaman               | Be careful what you choose....
              - [EMAIL PROTECTED]   |      .......you may get it.
----------------------------------------------------------------------




-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to