[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!


More information about the Containers mailing list