Commits
Johannes Weiner authored and Konstantin Khorenko committed a6807364a77
ms/mm: memcontrol: factor out reclaim iterator loading and updating mem_cgroup_iter() is too hard to follow. Factor out the lockless reclaim iterator loading and updating so it's easier to follow the big picture. Also document the iterator invalidation mechanism a bit more extensively. Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> Reported-by: Tejun Heo <tj@kernel.org> Reviewed-by: Tejun Heo <tj@kernel.org> Acked-by: Michal Hocko <mhocko@suse.cz> Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com> Cc: Glauber Costa <glommer@parallels.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Despite being declared as cleanup this patch accidentally fixes double css_put(). Found while investigating https://jira.sw.ru/browse/PSBM-75892 but unless I'm missing something it's not related. (cherry picked from commit 519ebea3bf6df45439e79c54bda1d9e29fe13a64) Signed-off-by: Andrey Ryabinin <aryabinin@virtuozzo.com>