]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcg: iteration skip memcgs not yet fully initialized
authorHugh Dickins <hughd@google.com>
Thu, 23 Jan 2014 23:53:32 +0000 (15:53 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 24 Jan 2014 00:36:53 +0000 (16:36 -0800)
commitadc9348165dbf8589e8ec6c5c0a5f7665ad67b65
treede34c8716415741701e60981b89cfeb2aef114da
parentd8949da3419493561aa23f4124789c39ac9261c5
mm/memcg: iteration skip memcgs not yet fully initialized

It is surprising that the mem_cgroup iterator can return memcgs which
have not yet been fully initialized.  By accident (or trial and error?)
this appears not to present an actual problem; but it may be better to
prevent such surprises, by skipping memcgs not yet online.

Signed-off-by: Hugh Dickins <hughd@google.com>
Cc: Tejun Heo <tj@kernel.org>
Acked-by: Michal Hocko <mhocko@suse.cz>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: <stable@vger.kernel.org> [3.12+]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c