diff options
author | Vladimir Davydov | 2016-02-03 01:57:49 +0100 |
---|---|---|
committer | Linus Torvalds | 2016-02-03 17:28:43 +0100 |
commit | 3c1da7beeee02560cd0f0c66c5a59fce3c6746e3 (patch) | |
tree | 2fc9b86f2fc86e7a720b4088aa0a46d4ae1cf909 /mm/swapfile.c | |
parent | mm: polish virtual memory accounting (diff) | |
download | kernel-qcow2-linux-3c1da7beeee02560cd0f0c66c5a59fce3c6746e3.tar.gz kernel-qcow2-linux-3c1da7beeee02560cd0f0c66c5a59fce3c6746e3.tar.xz kernel-qcow2-linux-3c1da7beeee02560cd0f0c66c5a59fce3c6746e3.zip |
mm/vmpressure.c: fix subtree pressure detection
When vmpressure is called for the entire subtree under pressure we
mistakenly use vmpressure->scanned instead of vmpressure->tree_scanned
when checking if vmpressure work is to be scheduled. This results in
suppressing all vmpressure events in the legacy cgroup hierarchy. Fix it.
Fixes: 8e8ae645249b ("mm: memcontrol: hook up vmpressure to socket pressure")
Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/swapfile.c')
0 files changed, 0 insertions, 0 deletions