Re: [patch 06/12] mm: memcontrol: simplify move precharge function

2014-06-17 Thread Michal Hocko
On Mon 16-06-14 15:54:26, Johannes Weiner wrote: > The move precharge function does some baroque things: it tries raw > res_counter charging of the entire amount first, and then falls back > to a loop of one-by-one charges, with checks for pending signals and > cond_resched() batching. > > Just

Re: [patch 06/12] mm: memcontrol: simplify move precharge function

2014-06-17 Thread Michal Hocko
On Mon 16-06-14 15:54:26, Johannes Weiner wrote: The move precharge function does some baroque things: it tries raw res_counter charging of the entire amount first, and then falls back to a loop of one-by-one charges, with checks for pending signals and cond_resched() batching. Just use

[patch 06/12] mm: memcontrol: simplify move precharge function

2014-06-16 Thread Johannes Weiner
The move precharge function does some baroque things: it tries raw res_counter charging of the entire amount first, and then falls back to a loop of one-by-one charges, with checks for pending signals and cond_resched() batching. Just use mem_cgroup_try_charge() without __GFP_WAIT for the first

[patch 06/12] mm: memcontrol: simplify move precharge function

2014-06-16 Thread Johannes Weiner
The move precharge function does some baroque things: it tries raw res_counter charging of the entire amount first, and then falls back to a loop of one-by-one charges, with checks for pending signals and cond_resched() batching. Just use mem_cgroup_try_charge() without __GFP_WAIT for the first