Messages in this thread Patch in this message | | | From | Vladimir Davydov <> | Subject | [PATCH -mm 6/6] memcg: iterator: do not skip offline css | Date | Mon, 28 Jul 2014 13:31:28 +0400 |
| |
After offline, memcg may still host kmem objects, which must be shrinked on memory pressure.
Signed-off-by: Vladimir Davydov <vdavydov@parallels.com> --- mm/memcontrol.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c index 1030bba4b94f..bf55088f0152 100644 --- a/mm/memcontrol.c +++ b/mm/memcontrol.c @@ -1100,8 +1100,7 @@ skip_node: */ if (next_css) { if ((next_css == &root->css) || - ((next_css->flags & CSS_ONLINE) && - css_tryget_online(next_css))) + css_tryget(next_css)) return mem_cgroup_from_css(next_css); prev_css = next_css; @@ -1147,7 +1146,7 @@ mem_cgroup_iter_load(struct mem_cgroup_reclaim_iter *iter, * would be returned all the time. */ if (position && position != root && - !css_tryget_online(&position->css)) + !css_tryget(&position->css)) position = NULL; } return position; -- 1.7.10.4
| |