From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Pekka Enberg" Subject: Re: [RFC][-mm] Add an owner to the mm_struct (v4) Date: Tue, 1 Apr 2008 19:00:03 +0300 Message-ID: <84144f020804010900s5335988ai58546874a6a2f8bd@mail.gmail.com> References: <20080401124312.23664.64616.sendpatchset@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20080401124312.23664.64616.sendpatchset@localhost.localdomain> Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org To: Balbir Singh Cc: Paul Menage , Pavel Emelianov , Hugh Dickins , Sudhir Kumar , YAMAMOTO Takashi , lizf@cn.fujitsu.com, linux-kernel@vger.kernel.org, taka@valinux.co.jp, linux-mm@kvack.org, David Rientjes , Andrew Morton , KAMEZAWA Hiroyuki List-Id: linux-mm.kvack.org Hi, On Tue, Apr 1, 2008 at 3:43 PM, Balbir Singh wrote: > @@ -227,8 +227,9 @@ struct mm_struct { > /* aio bits */ > rwlock_t ioctx_list_lock; > struct kioctx *ioctx_list; > -#ifdef CONFIG_CGROUP_MEM_RES_CTLR > - struct mem_cgroup *mem_cgroup; > +#ifdef CONFIG_MM_OWNER > + struct task_struct *owner; /* The thread group leader that */ > + /* owns the mm_struct. */ > #endif Yes, please. This is useful for the revokeat() patches as well. I currently need a big ugly loop to scan each task so I can break COW of private pages.