[RFC][PATCH 2/3] The accounting hooks and core

Pavel Emelyanov xemul at openvz.org
Tue Sep 4 02:26:15 PDT 2007


Paul Menage wrote:
> On 8/30/07, Pavel Emelyanov <xemul at openvz.org> wrote:
>> +
>> +       cnt = task_kmem_container(current);
>> +       if (res_counter_charge(&cnt->res, s->size))
>> +               return -ENOMEM;
>> +
>> +       css_get(&cnt->css);
> 
> These lines should be in an rcu_read_lock() section.

Indeed. Thanks a lot. :)

> Paul
> 



More information about the Containers mailing list