Signed-Off-By: Chandra Seetharaman <[EMAIL PROTECTED]>
Signed-Off-By: Gerrit Huizenga <[EMAIL PROTECTED]>

Removed without realizing it. Putting it back.

 ckrm_numtasks.c |    3 +++
 1 files changed, 3 insertions(+)

Index: linux-2.6.12-rc3-ckrm2/kernel/ckrm/ckrm_numtasks.c
===================================================================
--- linux-2.6.12-rc3-ckrm2.orig/kernel/ckrm/ckrm_numtasks.c     2005-04-26 
19:13:44.180039799 -0700
+++ linux-2.6.12-rc3-ckrm2/kernel/ckrm/ckrm_numtasks.c  2005-04-26 
19:13:45.534875837 -0700
@@ -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);

--



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to