]> git.baikalelectronics.ru Git - kernel.git/commit
mm/vmpressure.c: fix subtree pressure detection
authorVladimir Davydov <vdavydov@virtuozzo.com>
Wed, 3 Feb 2016 00:57:49 +0000 (16:57 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Feb 2016 16:28:43 +0000 (08:28 -0800)
commit744902144a99940cda24b62a6c8f4f78b0383e44
tree2fc9b86f2fc86e7a720b4088aa0a46d4ae1cf909
parente913e759e5b763f1fafabb743fefc3823b3dfcc4
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: b1d4ae24983c ("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>
mm/vmpressure.c