Subject: [merged] memcg-remove-unnecessary-mm-check-from-try_get_mem_cgroup_from_mm.patch removed from -mm tree To: hannes@xxxxxxxxxxx,mhocko@xxxxxxx,mm-commits@xxxxxxxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Tue, 08 Apr 2014 13:52:04 -0700 The patch titled Subject: memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm() has been removed from the -mm tree. Its filename was memcg-remove-unnecessary-mm-check-from-try_get_mem_cgroup_from_mm.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Johannes Weiner <hannes@xxxxxxxxxxx> Subject: memcg: remove unnecessary !mm check from try_get_mem_cgroup_from_mm() Users pass either a mm that has been established under task lock, or use a verified current->mm, which means the task can't be exiting. Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memcontrol.c | 7 ------- 1 file changed, 7 deletions(-) diff -puN mm/memcontrol.c~memcg-remove-unnecessary-mm-check-from-try_get_mem_cgroup_from_mm mm/memcontrol.c --- a/mm/memcontrol.c~memcg-remove-unnecessary-mm-check-from-try_get_mem_cgroup_from_mm +++ a/mm/memcontrol.c @@ -1075,13 +1075,6 @@ struct mem_cgroup *try_get_mem_cgroup_fr { struct mem_cgroup *memcg = NULL; - if (!mm) - return NULL; - /* - * Because we have no locks, mm->owner's may be being moved to other - * cgroup. We use css_tryget() here even if this looks - * pessimistic (rather than adding locks here). - */ rcu_read_lock(); do { memcg = mem_cgroup_from_task(rcu_dereference(mm->owner)); _ Patches currently in -mm which might be from hannes@xxxxxxxxxxx are origin.patch mm-vmscan-do-not-swap-anon-pages-just-because-freefile-is-low.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html