From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH 2/4] cgroup: remove redundant get/put of task struct Date: Thu, 22 Dec 2011 13:36:11 +0800 Message-ID: <4EF2C1CB.4030103@cn.fujitsu.com> References: <1324527518-24461-1-git-send-email-msb@chromium.org> <1324527518-24461-2-git-send-email-msb@chromium.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1324527518-24461-2-git-send-email-msb-F7+t8E8rja9g9hUCZPvPmw@public.gmane.org> Sender: cgroups-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" To: Mandeep Singh Baines Cc: Tejun Heo , Frederic Weisbecker , linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, KAMEZAWA Hiroyuki , Oleg Nesterov , Andrew Morton , Paul Menage Mandeep Singh Baines wrote: > threadgroup_lock() guarantees that the target threadgroup will > remain stable - no new task will be added, no new PF_EXITING > will be set and exec won't happen. > > Changes in V2: > * https://lkml.org/lkml/2011/12/20/369 (Tejun Heo) > * Undo incorrect removal of get/put from attach_task_by_pid() > * Author > * Remove a comment which is made stale by this change > > Signed-off-by: Mandeep Singh Baines Acked-by: Li Zefan > Cc: Tejun Heo > Cc: Li Zefan > Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org > Cc: cgroups-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > Cc: KAMEZAWA Hiroyuki > Cc: Frederic Weisbecker > Cc: Oleg Nesterov > Cc: Andrew Morton > Cc: Paul Menage > --- > kernel/cgroup.c | 11 ++--------- > 1 files changed, 2 insertions(+), 9 deletions(-)