[Devel] Re: [RFC][PATCH] introduce task cgroup (#task restrictioon for prevent fork bomb by cgroup)
KOSAKI Motohiro
kosaki.motohiro at jp.fujitsu.com
Thu Jun 5 03:56:32 PDT 2008
Hi Nishimura-san,
Thanks good point out.
>> +#include <linux/res_counter.h>
> I don't think it's needed.
> Or, are you planning to implement this feature by using res_counter?
your are right.
my early version use res_counter, but it isn't used currently.
>> + spin_lock(&taskcg->lock);
>> + if (max_tasks < taskcg->nr_tasks)
>> + return -EBUSY;
> need spin_unlock().
Yes, of cource.
I'll fix it.
Thanks!
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list