From mboxrd@z Thu Jan 1 00:00:00 1970 From: Li Zefan Subject: Re: [PATCH 2/8] Adds a read-only "procs" file similar to "tasks" that shows only unique tgids Date: Thu, 20 Aug 2009 10:34:53 +0800 Message-ID: <4A8CB64D.8070507@cn.fujitsu.com> References: <20090818235059.22531.42618.stgit@menage.mtv.corp.google.com> <20090818235817.22531.23434.stgit@menage.mtv.corp.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20090818235817.22531.23434.stgit-u3IScbYxn0zHt/MElyovVYaSKrA+ACpX0E9HWUfgJXw@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Paul Menage Cc: bblum-OM76b2Iv3yLQjUSlxSEPGw@public.gmane.org, containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: containers.vger.kernel.org 07:58, Paul Menage wrote: > From: Ben Blum > > > Adds a read-only "procs" file similar to "tasks" that shows only unique tgids > > struct cgroup used to have a bunch of fields for keeping track of the pidlist > for the tasks file. Those are now separated into a new struct cgroup_pidlist, > of which two are had, one for procs and one for tasks. The way the seq_file > operations are set up is changed so that just the pidlist struct gets passed > around as the private data. > > Interface example: Suppose a multithreaded process has pid 1000 and other > threads with ids 1001, 1002, 1003: > $ cat tasks > 1000 > 1001 > 1002 > 1003 > $ cat cgroup.procs > 1000 > $ > > Signed-off-by: Ben Blum > Signed-off-by: Paul Menage > Acked-by: Li Zefan