Removed without realizing it. Putting it back.

Index: linux-2.6.12-rc1/kernel/ckrm/ckrm_numtasks.c
===================================================================
--- linux-2.6.12-rc1.orig/kernel/ckrm/ckrm_numtasks.c
+++ linux-2.6.12-rc1/kernel/ckrm/ckrm_numtasks.c
@@ -165,6 +165,9 @@ static void numtasks_put_ref_local(struc
        res = ckrm_get_res_class(core, resid, struct ckrm_numtasks);
        if (res == NULL)
                return;
+
+       if (atomic_read(&res->cnt_cur_alloc) == 0)
+               return;
        atomic_dec(&res->cnt_cur_alloc);
        if (atomic_read(&res->cnt_borrowed) > 0) {
                atomic_dec(&res->cnt_borrowed);


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to