Re: [RFC][-mm] Add an owner to the mm_struct (v4)

From: Pekka Enberg
Date: Tue Apr 01 2008 - 12:00:21 EST


Hi,

On Tue, Apr 1, 2008 at 3:43 PM, Balbir Singh <balbir@xxxxxxxxxxxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/