]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: memcontrol: reclaim at least once for __GFP_NORETRY
authorJohannes Weiner <hannes@cmpxchg.org>
Thu, 26 Jun 2014 00:42:36 +0000 (10:42 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 26 Jun 2014 00:42:36 +0000 (10:42 +1000)
commit375e7d44c9d65f6351e654f0aa3adc7f6aba703b
tree37385a8096f679ca6376b9e01e388e88ec17c99a
parentabbb36e4e4a2db18ea78203e9a720720630eec96
mm: memcontrol: reclaim at least once for __GFP_NORETRY

Currently, __GFP_NORETRY tries charging once and gives up before even
trying to reclaim.  Bring the behavior on par with the page allocator and
reclaim at least once before giving up.

Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Vladimir Davydov <vdavydov@parallels.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memcontrol.c