diff options
author | Vladimir Davydov <vdavydov@parallels.com> | 2015-06-10 21:14:46 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-06-11 02:43:43 +0300 |
commit | 7d638093d4b0e9ef15bd78f38f11f126e773cc14 (patch) | |
tree | 1b491946b967b573c0394c58032fcc38e8aeca1d /drivers | |
parent | 85bd839983778fcd0c1c043327b14a046e979b39 (diff) | |
download | linux-7d638093d4b0e9ef15bd78f38f11f126e773cc14.tar.xz |
memcg: do not call reclaim if !__GFP_WAIT
When trimming memcg consumption excess (see memory.high), we call
try_to_free_mem_cgroup_pages without checking if we are allowed to sleep
in the current context, which can result in a deadlock. Fix this.
Fixes: 241994ed8649 ("mm: memcontrol: default hierarchy interface for memory")
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions