login
Header Space

 
 

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

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Paul Menage <menage@...>
Cc: Pavel Emelianov <xemul@...>, Hugh Dickins <hugh@...>, Sudhir Kumar <skumar@...>, YAMAMOTO Takashi <yamamoto@...>, <lizf@...>, <linux-kernel@...>, <taka@...>, <linux-mm@...>, David Rientjes <rientjes@...>, Andrew Morton <akpm@...>, KAMEZAWA Hiroyuki <kamezawa.hiroyu@...>
Date: Friday, March 28, 2008 - 10:52 am

Paul Menage wrote:

This was supposed to be deleted, ignore it


mm->owner_lock is there to protect mm->owner field from changing simultaneously
as tasks fork/exit.


Oh! yes.. my bad again. The check should have been p == p->thread_group, but
that is not required either. The check should now ideally be

if (!(clone_flags & CLONE_VM))


Yes.. I think we need to call it earlier.


Yes, it is.





But there is no way to guarantee that, what is the new_owner exec's after we've
done the check and assigned. Won't we end up breaking the invariant? How about
we have mm_update_new_owner() call in exec_mmap() as well? That way, we can
still use owner_lock and keep the invariant.



That's a possibility

Thanks for your patience and review.

-- 
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 4:23 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 7:01 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 8:36 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 10:05 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 10:52 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 11:38 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 2:10 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 2:52 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Sat Mar 29, 1:46 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 9:02 pm)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 8:54 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 10:06 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 6:55 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:52 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:15 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:21 am)
Re: [-mm] Add an owner to the mm_struct (v2), Paul Menage, (Fri Mar 28, 7:04 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 6:48 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:51 am)
Re: [-mm] Add an owner to the mm_struct (v2), KAMEZAWA Hiroyuki, (Fri Mar 28, 7:06 am)
Re: [-mm] Add an owner to the mm_struct (v2), Jiri Slaby, (Fri Mar 28, 5:41 am)
Re: [-mm] Add an owner to the mm_struct (v2), Jiri Slaby, (Fri Mar 28, 5:43 am)
Re: [-mm] Add an owner to the mm_struct (v2), Balbir Singh, (Fri Mar 28, 6:11 am)
speck-geostationary