* [PATCH] memcg: remove redundant check in move_task()
@ 2008-07-28 2:28 Li Zefan
2008-07-29 3:00 ` KAMEZAWA Hiroyuki
0 siblings, 1 reply; 2+ messages in thread
From: Li Zefan @ 2008-07-28 2:28 UTC (permalink / raw)
To: Andrew Morton; +Cc: Balbir Singh, KAMEZAWA Hiroyuki, LKML, Linux Containers
It's guaranteed by cgroup that old_cgrp != cgrp.
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
---
mm/memcontrol.c | 3 ---
1 files changed, 0 insertions(+), 3 deletions(-)
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index fba566c..7056c3b 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1168,9 +1168,6 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss,
mem = mem_cgroup_from_cont(cont);
old_mem = mem_cgroup_from_cont(old_cont);
- if (mem == old_mem)
- goto out;
-
/*
* Only thread group leaders are allowed to migrate, the mm_struct is
* in effect owned by the leader
--
1.5.4.rc3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] memcg: remove redundant check in move_task()
2008-07-28 2:28 [PATCH] memcg: remove redundant check in move_task() Li Zefan
@ 2008-07-29 3:00 ` KAMEZAWA Hiroyuki
0 siblings, 0 replies; 2+ messages in thread
From: KAMEZAWA Hiroyuki @ 2008-07-29 3:00 UTC (permalink / raw)
To: Li Zefan; +Cc: Andrew Morton, Balbir Singh, LKML, Linux Containers
On Mon, 28 Jul 2008 10:28:27 +0800
Li Zefan <lizf@cn.fujitsu.com> wrote:
> It's guaranteed by cgroup that old_cgrp != cgrp.
>
> Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Thank you.
Hmm.. I like BUG_ON() to show that "this will never happen" rather
than just removing.
Anyway. I ack this.
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
> ---
> mm/memcontrol.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/mm/memcontrol.c b/mm/memcontrol.c
> index fba566c..7056c3b 100644
> --- a/mm/memcontrol.c
> +++ b/mm/memcontrol.c
> @@ -1168,9 +1168,6 @@ static void mem_cgroup_move_task(struct cgroup_subsys *ss,
> mem = mem_cgroup_from_cont(cont);
> old_mem = mem_cgroup_from_cont(old_cont);
>
> - if (mem == old_mem)
> - goto out;
> -
> /*
> * Only thread group leaders are allowed to migrate, the mm_struct is
> * in effect owned by the leader
> --
> 1.5.4.rc3
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-29 3:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-28 2:28 [PATCH] memcg: remove redundant check in move_task() Li Zefan
2008-07-29 3:00 ` KAMEZAWA Hiroyuki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox