[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20080401062427.A3E785A05@siro.lan>
Date: Tue, 1 Apr 2008 15:24:27 +0900 (JST)
From: yamamoto@...inux.co.jp (YAMAMOTO Takashi)
To: menage@...gle.com
Cc: balbir@...ux.vnet.ibm.com, xemul@...nvz.org, hugh@...itas.com,
skumar@...ux.vnet.ibm.com, lizf@...fujitsu.com,
linux-kernel@...r.kernel.org, taka@...inux.co.jp,
linux-mm@...ck.org, rientjes@...gle.com, akpm@...ux-foundation.org,
kamezawa.hiroyu@...fujitsu.com
Subject: Re: [RFC][-mm] Add an owner to the mm_struct (v3)
> On Mon, Mar 31, 2008 at 11:03 PM, YAMAMOTO Takashi
> <yamamoto@...inux.co.jp> wrote:
> >
> > changing mm->owner without notifying controllers makes it difficult to use.
> > can you provide a notification mechanism?
> >
>
> Yes, I think that call will need to be in the task_lock() critical
> section in which we update mm->owner.
>
> Right now I think the only user that needs to be notified at that
> point is Balbir's virtual address limits controller.
>
> Paul
i have some code for which i might want to use mm->owner.
it does somewhat complicated things like acquiring mm_sem and
traversing ptes in its ->attach hook. (if you want to read the code, search
"Subject: [RFC][PATCH] another swap controller for cgroup" in ML archive.)
probably i don't need to use mm->owner, but it's better if mm->owner can
handle more cases anyway.
YAMAMOTO Takashi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists