]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
mm, memcg: do not retry precharge charges
authorDavid Rientjes <rientjes@google.com>
Tue, 24 Jan 2017 23:18:10 +0000 (15:18 -0800)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Wed, 8 Mar 2017 13:35:31 +0000 (10:35 -0300)
commit4c1499d4280235208bf3afdd28bda4808fcaa32a
treebaf4acd2ad8d7879a0072fcd02652dfb1350f904
parent71d1100b81f3df96d04542879dc8e7e5c78d9969
mm, memcg: do not retry precharge charges

BugLink: http://bugs.launchpad.net/bugs/1660994
commit 3674534b775354516e5c148ea48f51d4d1909a78 upstream.

When memory.move_charge_at_immigrate is enabled and precharges are
depleted during move, mem_cgroup_move_charge_pte_range() will attempt to
increase the size of the precharge.

Prevent precharges from ever looping by setting __GFP_NORETRY.  This was
probably the intention of the GFP_KERNEL & ~__GFP_NORETRY, which is
pointless as written.

Fixes: 0029e19ebf84 ("mm: memcontrol: remove explicit OOM parameter in charge path")
Link: http://lkml.kernel.org/r/alpine.DEB.2.10.1701130208510.69402@chino.kir.corp.google.com
Signed-off-by: David Rientjes <rientjes@google.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
mm/memcontrol.c