Re: [patch 05/10] mm: memcontrol: catch root bypass in move precharge

2014-06-03 Thread Michal Hocko
On Thu 29-05-14 12:15:57, Johannes Weiner wrote: > When mem_cgroup_try_charge() returns -EINTR, it bypassed the charge to > the root memcg. But move precharging does not catch this and treats > this case as if no charge had happened, thus leaking a charge against > root. Because of an old optimiz

[patch 05/10] mm: memcontrol: catch root bypass in move precharge

2014-05-29 Thread Johannes Weiner
When mem_cgroup_try_charge() returns -EINTR, it bypassed the charge to the root memcg. But move precharging does not catch this and treats this case as if no charge had happened, thus leaking a charge against root. Because of an old optimization, the root memcg's res_counter is not actually charg