Messages in this thread |  | | | Subject | Re: [RFC][-mm] Add an owner to the mm_struct (v3) | | Date | Tue, 1 Apr 2008 15:24:27 +0900 (JST) | | From | (YAMAMOTO Takashi) | |
> On Mon, Mar 31, 2008 at 11:03 PM, YAMAMOTO Takashi
> <yamamoto@valinux.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
|  |